diff options
author | Owen Anderson <resistor@mac.com> | 2009-04-27 19:55:47 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-04-27 19:55:47 +0000 |
commit | 7ca3521d6af5ba19dc671ffa4fb5840c12264f67 (patch) | |
tree | 65cf852069f16de5fee9ca95422c7d0b3443cee6 /llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | |
parent | 84bfa2c2dcc90ed6907f2a7722f523b87063df80 (diff) | |
download | bcm5719-llvm-7ca3521d6af5ba19dc671ffa4fb5840c12264f67.tar.gz bcm5719-llvm-7ca3521d6af5ba19dc671ffa4fb5840c12264f67.zip |
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.
llvm-svn: 70238
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp b/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp index 719dd94a560..520ecb3c4d6 100644 --- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.cpp +++ b/llvm/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); |