At -O0, multiple uses of a virtual registers in the same BB are being marked
[oota-llvm.git] / lib / CodeGen / TwoAddressInstructionPass.cpp
index 33ed4cc907a1614a34e99a89cc07db8506ec3e7b..a702c6c840711c70bd11f8c79f79c91efb6d9471 100644 (file)
@@ -502,7 +502,8 @@ MachineInstr *findLocalKill(unsigned Reg, MachineBasicBlock *MBB,
       continue;
     if (!UI.getOperand().isKill())
       return 0;
-    assert(!KillMI && "More than one local kills?");
+    if (KillMI)
+      return 0;  // -O0 kill markers cannot be trusted?
     KillMI = UseMI;
   }