[llvm-commits] [llvm] r152089 - /llvm/trunk/lib/CodeGen/MachineInstrBundle.cpp
Evan Cheng
evan.cheng at apple.com
Mon Mar 5 18:00:53 PST 2012
Author: evancheng
Date: Mon Mar 5 20:00:52 2012
New Revision: 152089
URL: http://llvm.org/viewvc/llvm-project?rev=152089&view=rev
Log:
Avoid finalizeBundles infinite looping.
Modified:
llvm/trunk/lib/CodeGen/MachineInstrBundle.cpp
Modified: llvm/trunk/lib/CodeGen/MachineInstrBundle.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstrBundle.cpp?rev=152089&r1=152088&r2=152089&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstrBundle.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstrBundle.cpp Mon Mar 5 20:00:52 2012
@@ -229,6 +229,8 @@
"First instr cannot be inside bundle before finalization!");
MachineBasicBlock::instr_iterator MIE = MBB.instr_end();
+ if (MII == MIE)
+ continue;
for (++MII; MII != MIE; ) {
if (!MII->isInsideBundle())
++MII;
More information about the llvm-commits
mailing list