[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/LiveRange.h

Brian Gaeke gaeke at cs.uiuc.edu
Wed Jul 28 21:15:46 PDT 2004



Changes in directory llvm/lib/Target/SparcV9/RegAlloc:

LiveRange.h updated: 1.25 -> 1.26

---
Log message:

Remove mustSaveAcrossCalls flag, which isn't ever read, and its mutator,
markForSaveAcrossCalls.


---
Diffs of the changes:  (+1 -8)

Index: llvm/lib/Target/SparcV9/RegAlloc/LiveRange.h
diff -u llvm/lib/Target/SparcV9/RegAlloc/LiveRange.h:1.25 llvm/lib/Target/SparcV9/RegAlloc/LiveRange.h:1.26
--- llvm/lib/Target/SparcV9/RegAlloc/LiveRange.h:1.25	Tue Nov 11 16:41:33 2003
+++ llvm/lib/Target/SparcV9/RegAlloc/LiveRange.h	Wed Jul 28 23:15:36 2004
@@ -40,11 +40,6 @@
   int Color;                  // color assigned to this live range
   bool mustSpill;             // whether this LR must be spilt
 
-  /// mustSaveAcrossCalls - whether this LR must be saved accross calls
-  /// ***TODO REMOVE this
-  ///
-  bool mustSaveAcrossCalls;        
-  
   /// SuggestedColor - if this LR has a suggested color, can it be
   /// really alloated?  A suggested color cannot be allocated when the
   /// suggested color is volatile and when there are call
@@ -77,7 +72,7 @@
 public:
   LiveRange() {
     Color = SuggestedColor = -1;        // not yet colored 
-    mustSpill = mustSaveAcrossCalls = false;
+    mustSpill = false;
     MyRegClass = 0;
     UserIGNode = 0;
     doesSpanAcrossCalls = false;
@@ -133,8 +128,6 @@
     return SpilledStackOffsetFromFP;
   }
 
-  inline void markForSaveAcrossCalls() { mustSaveAcrossCalls = true; }
-  
   inline void setUserIGNode(IGNode *IGN) {
     assert(!UserIGNode); UserIGNode = IGN;
   }





More information about the llvm-commits mailing list