aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-04-27 19:55:47 +0000
committerOwen Anderson <resistor@mac.com>2009-04-27 19:55:47 +0000
commitf352b9b4eccb35e0bef0539a1dcb3b0aa544eb3b (patch)
tree6b9dfc3cf1a83804ece8f2afb209c44fa9bbe2be /lib/CodeGen
parenta52554e58e82a1e43ddf41ac96706b7c817b5dcc (diff)
downloadexternal_llvm-f352b9b4eccb35e0bef0539a1dcb3b0aa544eb3b.zip
external_llvm-f352b9b4eccb35e0bef0539a1dcb3b0aa544eb3b.tar.gz
external_llvm-f352b9b4eccb35e0bef0539a1dcb3b0aa544eb3b.tar.bz2
Don't skip the CopyMI when removing kill markers.
This should have no effect on generated code, but makes the intermediate state of the coalescer more sane. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SimpleRegisterCoalescing.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp
index 719dd94..520ecb3 100644
--- a/lib/CodeGen/SimpleRegisterCoalescing.cpp
+++ b/lib/CodeGen/SimpleRegisterCoalescing.cpp
@@ -772,8 +772,6 @@ void SimpleRegisterCoalescing::RemoveUnnecessaryKills(unsigned Reg,
if (UseMO.isKill()) {
MachineInstr *UseMI = UseMO.getParent();
unsigned UseIdx = li_->getUseIndex(li_->getInstructionIndex(UseMI));
- if (JoinedCopies.count(UseMI))
- continue;
const LiveRange *UI = LI.getLiveRangeContaining(UseIdx);
if (!UI || !LI.isKill(UI->valno, UseIdx+1))
UseMO.setIsKill(false);