[llvm-commits] [llvm] r144804 - /llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Evan Cheng evan.cheng at apple.com
Wed Nov 16 10:32:14 PST 2011


Author: evancheng
Date: Wed Nov 16 12:32:14 2011
New Revision: 144804

URL: http://llvm.org/viewvc/llvm-project?rev=144804&view=rev
Log:
Disable the assertion again. Looks like fastisel is still generating bad kill markers.

Modified:
    llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp

Modified: llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp?rev=144804&r1=144803&r2=144804&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp (original)
+++ llvm/trunk/lib/CodeGen/TwoAddressInstructionPass.cpp Wed Nov 16 12:32:14 2011
@@ -502,7 +502,8 @@
       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;
   }
 





More information about the llvm-commits mailing list