summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-11-16 18:32:14 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-11-16 18:32:14 +0000
commit14117c44770c32b56de143a0eff8c2d0fd694e0d (patch)
treeb1a131413a5223ee5bddb446dda6a7f8418e7bd5 /lib/CodeGen/TwoAddressInstructionPass.cpp
parent23f220705a74685edd743e84861a3e0d6d109828 (diff)
downloadllvm-14117c44770c32b56de143a0eff8c2d0fd694e0d.tar.gz
llvm-14117c44770c32b56de143a0eff8c2d0fd694e0d.tar.bz2
llvm-14117c44770c32b56de143a0eff8c2d0fd694e0d.tar.xz
Disable the assertion again. Looks like fastisel is still generating bad kill markers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144804 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 53c63a09e8..7a0fcb5651 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/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;
}