mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Another bug fix for empty MBB's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -653,7 +653,7 @@ void RA::AllocateBasicBlock(MachineBasicBlock &MBB) {
|
|||||||
const TargetInstrInfo &TII = TM->getInstrInfo();
|
const TargetInstrInfo &TII = TM->getInstrInfo();
|
||||||
MI = MBB.end();
|
MI = MBB.end();
|
||||||
while (MI != MBB.begin() && TII.isTerminatorInstr((--MI)->getOpcode()));
|
while (MI != MBB.begin() && TII.isTerminatorInstr((--MI)->getOpcode()));
|
||||||
++MI;
|
if (MI != MBB.end()) ++MI;
|
||||||
|
|
||||||
// Spill all physical registers holding virtual registers now.
|
// Spill all physical registers holding virtual registers now.
|
||||||
for (unsigned i = 0, e = RegInfo->getNumRegs(); i != e; ++i)
|
for (unsigned i = 0, e = RegInfo->getNumRegs(); i != e; ++i)
|
||||||
|
Reference in New Issue
Block a user