mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Avoid finalizeBundles infinite looping.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
afd3d56b9d
commit
8250d7385a
@ -229,6 +229,8 @@ bool llvm::finalizeBundles(MachineFunction &MF) {
|
|||||||
"First instr cannot be inside bundle before finalization!");
|
"First instr cannot be inside bundle before finalization!");
|
||||||
|
|
||||||
MachineBasicBlock::instr_iterator MIE = MBB.instr_end();
|
MachineBasicBlock::instr_iterator MIE = MBB.instr_end();
|
||||||
|
if (MII == MIE)
|
||||||
|
continue;
|
||||||
for (++MII; MII != MIE; ) {
|
for (++MII; MII != MIE; ) {
|
||||||
if (!MII->isInsideBundle())
|
if (!MII->isInsideBundle())
|
||||||
++MII;
|
++MII;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user