Fix a bug in RegAllocBase::addMBBLiveIns() where a basic block could accidentally be skipped.

llvm-svn: 129373
This commit is contained in:
Jakob Stoklund Olesen 2011-04-12 18:11:28 +00:00
parent 4547a9e658
commit 68e84581c5
1 changed files with 1 additions and 1 deletions

View File

@ -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);