[llvm-commits] CVS: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp 
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Wed Aug 30 22:59:13 PDT 2006
    
    
  
Changes in directory llvm/lib/CodeGen:
LiveIntervalAnalysis.cpp updated: 1.174 -> 1.175
---
Log message:
Delete copies as they are coallesced instead of waiting until the end.
---
Diffs of the changes:  (+4 -0)
 LiveIntervalAnalysis.cpp |    4 ++++
 1 files changed, 4 insertions(+)
Index: llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff -u llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.174 llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.175
--- llvm/lib/CodeGen/LiveIntervalAnalysis.cpp:1.174	Thu Aug 31 00:54:43 2006
+++ llvm/lib/CodeGen/LiveIntervalAnalysis.cpp	Thu Aug 31 00:58:59 2006
@@ -823,6 +823,10 @@
   r2iMap_.erase(SrcReg);
   r2rMap_[SrcReg] = DstReg;
 
+  // Finally, delete the copy instruction.
+  RemoveMachineInstrFromMaps(CopyMI);
+  CopyMI->eraseFromParent();
+  ++numPeep;
   ++numJoins;
   return true;
 }
    
    
More information about the llvm-commits
mailing list