forked from OSchip/llvm-project
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:
parent
e81620fb88
commit
8340cc0d6c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue