Revert r144568 now that r144730 has fixed the fast-isel kill marker bug.
[oota-llvm.git] / lib / CodeGen / TwoAddressInstructionPass.cpp
index 7a0fcb5651c0b7c8abe398663aca3925fd1c0620..53c63a09e8055c029622aecbc71ffd55e1bfbc2d 100644 (file)
@@ -502,8 +502,7 @@ MachineInstr *findLocalKill(unsigned Reg, MachineBasicBlock *MBB,
       continue;
     if (!UI.getOperand().isKill())
       return 0;
-    if (KillMI)
-      return 0;  // -O0 kill markers cannot be trusted?
+    assert(!KillMI && "More than one local kills?");
     KillMI = UseMI;
   }