diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-01-22 22:38:21 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-01-22 22:38:21 +0000 |
| commit | 7048797468a1d9de2ff7b63ff212d0cb6ae653a5 (patch) | |
| tree | 7be529250fc9d48721cf71f470ffd3f81a32c6f6 /llvm/lib/CodeGen/SlotIndexes.cpp | |
| parent | edf96a4cc3c7968570581361f44b70fc9ec33e09 (diff) | |
| download | bcm5719-llvm-7048797468a1d9de2ff7b63ff212d0cb6ae653a5.tar.gz bcm5719-llvm-7048797468a1d9de2ff7b63ff212d0cb6ae653a5.zip | |
Ignore DEBUG_VALUE when building live intervals;
this makes the code work transparently the same
whether they're there or not.
llvm-svn: 94240
Diffstat (limited to 'llvm/lib/CodeGen/SlotIndexes.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SlotIndexes.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SlotIndexes.cpp b/llvm/lib/CodeGen/SlotIndexes.cpp index b8f529b8933..a23efb2b8d9 100644 --- a/llvm/lib/CodeGen/SlotIndexes.cpp +++ b/llvm/lib/CodeGen/SlotIndexes.cpp @@ -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)); |

