From: Owen Anderson Date: Mon, 27 Apr 2009 19:55:47 +0000 (+0000) Subject: Don't skip the CopyMI when removing kill markers. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=82fd3f3d3ad44b7e3d0e7efc51a6498731746f79 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 --- diff --git a/lib/CodeGen/SimpleRegisterCoalescing.cpp b/lib/CodeGen/SimpleRegisterCoalescing.cpp index 719dd94a560..520ecb3c4d6 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);