Mechanically replace LiveInterval* with LiveIntervalMap for intervals being
[oota-llvm.git] / lib / CodeGen / SplitKit.h
index b80443ee4b048af5be8cae81f529d00cfb2d359e..6e534546f149bd3ca87d711c672471fc2f8c95ab 100644 (file)
@@ -227,10 +227,10 @@ class SplitEditor {
   /// dupli_ - Created as a copy of curli_, ranges are carved out as new
   /// intervals get added through openIntv / closeIntv. This is used to avoid
   /// editing curli_.
-  LiveInterval *dupli_;
+  LiveIntervalMap dupli_;
 
   /// Currently open LiveInterval.
-  LiveInterval *openli_;
+  LiveIntervalMap openli_;
 
   /// createInterval - Create a new virtual register and LiveInterval with same
   /// register class and spill slot as curli.
@@ -303,7 +303,9 @@ public:
 
   /// rewrite - after all the new live ranges have been created, rewrite
   /// instructions using curli to use the new intervals.
-  void rewrite();
+  /// Return true if curli has been completely replaced, false if curli is still
+  /// intact, and needs to be spilled or split further.
+  bool rewrite();
 
   // ===--- High level methods ---===