From 624eb2af6f38736de128d3a94da4c1ab8dbd8c77 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 16 Nov 2011 18:32:14 +0000 Subject: [PATCH] Disable the assertion again. Looks like fastisel is still generating bad kill markers. llvm-svn: 144804 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 53c63a09e805..7a0fcb5651c0 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -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; }