LiveIntervalAnalysis: Factor common code into splitSeparateComponents; NFC
[oota-llvm.git] / include / llvm / CodeGen / LiveIntervalAnalysis.h
index 5996f8dd334d289461b2067637e48e0f3d79ec7a..137e96587507962f0a37c5995658254c1d6f4368 100644 (file)
@@ -402,6 +402,10 @@ extern cl::opt<bool> UseSegmentSetForPhysRegs;
     /// that start at position @p Pos.
     void removeVRegDefAt(LiveInterval &LI, SlotIndex Pos);
 
+    /// Split separate components in LiveInterval \p LI into separate intervals.
+    void splitSeparateComponents(LiveInterval &LI,
+                                 SmallVectorImpl<LiveInterval*> &SplitLIs);
+
   private:
     /// Compute live intervals for all virtual registers.
     void computeVirtRegs();