mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Ignore DEBUG_VALUE when building live intervals;
this makes the code work transparently the same whether they're there or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/ManagedStatic.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@ -107,6 +108,8 @@ bool SlotIndexes::runOnMachineFunction(MachineFunction &fn) {
|
||||
for (MachineBasicBlock::iterator miItr = mbb->begin(), miEnd = mbb->end();
|
||||
miItr != miEnd; ++miItr) {
|
||||
MachineInstr *mi = &*miItr;
|
||||
if (mi->getOpcode()==TargetInstrInfo::DEBUG_VALUE)
|
||||
continue;
|
||||
|
||||
if (miItr == mbb->getFirstTerminator()) {
|
||||
push_back(createEntry(0, index));
|
||||
|
Reference in New Issue
Block a user