summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-12-01 01:22:41 +0000
committerAndrew Trick <atrick@apple.com>2012-12-01 01:22:41 +0000
commita01302182cbd145e880cd2a58d0bb76b50978d62 (patch)
tree745328df735215ce7854e995055c395b95fdf901 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parente7ea8aa48a266f22f2c07003313e49174c6d9037 (diff)
downloadbcm5719-llvm-a01302182cbd145e880cd2a58d0bb76b50978d62.tar.gz
bcm5719-llvm-a01302182cbd145e880cd2a58d0bb76b50978d62.zip
misched: Fix LiveInterval update to better handle DebugVal.
Assertion failed: (itr != mi2iMap.end() && "Instruction not found in maps.") rdar://12777252. llvm-svn: 169070
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index c2610dc15d6..404cf76fad8 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -1292,7 +1292,11 @@ private:
MachineBasicBlock::iterator MII(MI);
++MII;
MachineBasicBlock* MBB = MI->getParent();
- for (; MII != MBB->end() && LIS.getInstructionIndex(MII) < OldIdx; ++MII){
+ for (; MII != MBB->end(); ++MII){
+ if (MII->isDebugValue())
+ continue;
+ if (LIS.getInstructionIndex(MII) < OldIdx)
+ break;
for (MachineInstr::mop_iterator MOI = MII->operands_begin(),
MOE = MII->operands_end();
MOI != MOE; ++MOI) {
OpenPOWER on IntegriCloud