mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-06 04:19:10 +00:00
Fix a bug in RegAllocBase::addMBBLiveIns() where a basic block could accidentally be skipped.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
860cf9693a
commit
dfaf0e2c0e
@ -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…
x
Reference in New Issue
Block a user