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 | 82fd3f3d3ad44b7e3d0e7efc51a6498731746f79 (patch) | |
tree | 6b9dfc3cf1a83804ece8f2afb209c44fa9bbe2be /lib/CodeGen | |
parent | 9771b91c2b4ce3baefdb9ba4ddfd9a9dd5077004 (diff) | |
download | external_llvm-82fd3f3d3ad44b7e3d0e7efc51a6498731746f79.zip external_llvm-82fd3f3d3ad44b7e3d0e7efc51a6498731746f79.tar.gz external_llvm-82fd3f3d3ad44b7e3d0e7efc51a6498731746f79.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.cpp | 2 |
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); |