[llvm-commits] [llvm] r70238 - /llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Owen Anderson resistor at mac.com
Mon Apr 27 12:55:47 PDT 2009


Author: resistor
Date: Mon Apr 27 14:55:47 2009
New Revision: 70238

URL: http://llvm.org/viewvc/llvm-project?rev=70238&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp

Modified: llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp?rev=70238&r1=70237&r2=70238&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp (original)
+++ llvm/trunk/lib/CodeGen/SimpleRegisterCoalescing.cpp Mon Apr 27 14:55:47 2009
@@ -772,8 +772,6 @@
     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);





More information about the llvm-commits mailing list