Disable the assertion again. Looks like fastisel is still generating bad kill markers.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 16 Nov 2011 18:32:14 +0000 (18:32 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 16 Nov 2011 18:32:14 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144804 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TwoAddressInstructionPass.cpp

index 53c63a09e8055c029622aecbc71ffd55e1bfbc2d..7a0fcb5651c0b7c8abe398663aca3925fd1c0620 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;
   }