summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-11-16 04:55:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-11-16 04:55:01 +0000
commit0a405ae78a244ba55dfafdcac16585c262269e21 (patch)
tree5b82ab40af820cbe1f150fd5fdf3e73318108d74 /lib/CodeGen/TwoAddressInstructionPass.cpp
parentf8f558d9e1f94ce6fa6f8e0f888066a9e76a002a (diff)
downloadllvm-0a405ae78a244ba55dfafdcac16585c262269e21.tar.gz
llvm-0a405ae78a244ba55dfafdcac16585c262269e21.tar.bz2
llvm-0a405ae78a244ba55dfafdcac16585c262269e21.tar.xz
Revert r144568 now that r144730 has fixed the fast-isel kill marker bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 7a0fcb5651..53c63a09e8 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -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;
}