When I rewrote this loop per Chris' preference I
authorDale Johannesen <dalej@apple.com>
Wed, 10 Feb 2010 21:41:41 +0000 (21:41 +0000)
committerDale Johannesen <dalej@apple.com>
Wed, 10 Feb 2010 21:41:41 +0000 (21:41 +0000)
changed its behavior.  Oops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95811 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 432409acd32db5d3bd8e50abc539af365a264109..f6bf43394032b751d025da9ad761da17594ef366 100644 (file)
@@ -613,6 +613,9 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
   while (mi != E) {
     if (mi->isDebugValue()) {
       ++mi;
+      if (mi != E && !mi->isDebugValue()) {
+        baseIndex = indexes_->getNextNonNullIndex(baseIndex);
+      }
       continue;
     }
     if (mi->killsRegister(interval.reg, tri_)) {