[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h

Chris Lattner lattner at cs.uiuc.edu
Thu Aug 31 21:02:59 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

LiveIntervalAnalysis.h updated: 1.56 -> 1.57
---
Log message:

Iterative coallescing doesn't buy us anything (we get identical results on
crafty with and without it).  Removing it speeds up live intervals 6%.


---
Diffs of the changes:  (+2 -15)

 LiveIntervalAnalysis.h |   17 ++---------------
 1 files changed, 2 insertions(+), 15 deletions(-)


Index: llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h
diff -u llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.56 llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.57
--- llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h:1.56	Thu Aug 31 00:54:43 2006
+++ llvm/include/llvm/CodeGen/LiveIntervalAnalysis.h	Thu Aug 31 23:02:42 2006
@@ -53,17 +53,6 @@
     std::vector<bool> allocatableRegs_;
 
   public:
-    struct CopyRec {
-      MachineInstr *MI;
-      unsigned SrcReg, DstReg;
-    };
-    CopyRec getCopyRec(MachineInstr *MI, unsigned SrcReg, unsigned DstReg) {
-      CopyRec R;
-      R.MI = MI;
-      R.SrcReg = SrcReg;
-      R.DstReg = DstReg;
-      return R;
-    }
     struct InstrSlots {
       enum {
         LOAD  = 0,
@@ -161,10 +150,8 @@
     /// joinIntervals - join compatible live intervals
     void joinIntervals();
 
-    /// CopyCoallesceInMBB - Coallsece copies in the specified MBB, putting
-    /// copies that cannot yet be coallesced into the "TryAgain" list.
-    void CopyCoallesceInMBB(MachineBasicBlock *MBB,
-                            std::vector<CopyRec> &TryAgain);
+    /// CopyCoallesceInMBB - Coallsece copies in the specified MBB.
+    void CopyCoallesceInMBB(MachineBasicBlock *MBB);
 
     /// JoinCopy - Attempt to join intervals corresponding to SrcReg/DstReg,
     /// which are the src/dst of the copy instruction CopyMI.  This returns true






More information about the llvm-commits mailing list