forked from OSchip/llvm-project
Fix a bug in RegAllocBase::addMBBLiveIns() where a basic block could accidentally be skipped.
llvm-svn: 129373
This commit is contained in:
parent
4547a9e658
commit
68e84581c5
|
@ -429,7 +429,7 @@ void RegAllocBase::addMBBLiveIns(MachineFunction *MF) {
|
|||
if (!MBB->isLiveIn(PhysReg))
|
||||
MBB->addLiveIn(PhysReg);
|
||||
} else if (SI.start() > Stop)
|
||||
MBB = Indexes->getMBBFromIndex(SI.start());
|
||||
MBB = Indexes->getMBBFromIndex(SI.start().getPrevIndex());
|
||||
if (++MBB == MFE)
|
||||
break;
|
||||
tie(Start, Stop) = Indexes->getMBBRange(MBB);
|
||||
|
|
Loading…
Reference in New Issue