Fix a bug in DEBUG_VALUE handling Devang ran into.

I'll get this loop right yet.

llvm-svn: 98155
This commit is contained in:
Dale Johannesen 2010-03-10 15:06:26 +00:00
parent e81620fb88
commit 8340cc0d6c
1 changed files with 3 additions and 6 deletions

View File

@ -593,13 +593,10 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
MachineBasicBlock::iterator E = MBB->end();
while (mi != E) {
if (mi->isDebugValue()) {
while (mi != E && mi->isDebugValue())
++mi;
if (mi != E && !mi->isDebugValue()) {
baseIndex = indexes_->getNextNonNullIndex(baseIndex);
}
continue;
}
if (mi == E)
break;
if (mi->killsRegister(interval.reg, tri_)) {
DEBUG(dbgs() << " killed");
end = baseIndex.getDefIndex();