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;
 }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to