Stop using dead function.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 13 Apr 2011 15:00:11 +0000 (15:00 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 13 Apr 2011 15:00:11 +0000 (15:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129442 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAllocGreedy.cpp
lib/CodeGen/SplitKit.cpp
lib/CodeGen/SplitKit.h

index 0e4e6eb30bd44979771474344a2617aef450f697..d1961197119ba62139c319c9fe25f0646a8c1ba0 100644 (file)
@@ -843,8 +843,6 @@ void RAGreedy::splitAroundRegion(LiveInterval &VirtReg,
       SE->enterIntvAtEnd(*MBB);
   }
 
-  SE->closeIntv();
-
   // FIXME: Should we be more aggressive about splitting the stack region into
   // per-block segments? The current approach allows the stack region to
   // separate into connected components. Some components may be allocatable.
@@ -1171,7 +1169,6 @@ unsigned RAGreedy::tryLocalSplit(LiveInterval &VirtReg, AllocationOrder &Order,
   SlotIndex SegStart = SE->enterIntvBefore(Uses[BestBefore]);
   SlotIndex SegStop  = SE->leaveIntvAfter(Uses[BestAfter]);
   SE->useIntv(SegStart, SegStop);
-  SE->closeIntv();
   SE->finish();
   setStage(NewVRegs.begin(), NewVRegs.end(), RS_Local);
   ++NumLocalSplits;
index 73788f6ba0c45cd0ae52ae0d112ca54beb89cdf3..35ef40ddd265e95f1bd0f28f1b21ec9152b0de26 100644 (file)
@@ -558,8 +558,6 @@ VNInfo *SplitEditor::defFromParent(unsigned RegIdx,
 
 /// Create a new virtual register and live interval.
 unsigned SplitEditor::openIntv() {
-  assert(!OpenIdx && "Previous LI not closed before openIntv");
-
   // Create the complement as index 0.
   if (Edit->empty())
     Edit->create(LIS, VRM);
@@ -696,13 +694,6 @@ void SplitEditor::overlapIntv(SlotIndex Start, SlotIndex End) {
   DEBUG(dump());
 }
 
-/// closeIntv - Indicate that we are done editing the currently open
-/// LiveInterval, and ranges can be trimmed.
-void SplitEditor::closeIntv() {
-  assert(OpenIdx && "openIntv not called before closeIntv");
-  OpenIdx = 0;
-}
-
 /// transferSimpleValues - Transfer all simply defined values to the new live
 /// ranges.
 /// Values that were rematerialized or that have multiple defs are left alone.
@@ -846,7 +837,6 @@ void SplitEditor::deleteRematVictims() {
 }
 
 void SplitEditor::finish() {
-  assert(OpenIdx == 0 && "Previous LI not closed before rewrite");
   ++NumFinished;
 
   // At this point, the live intervals in Edit contain VNInfos corresponding to
@@ -948,7 +938,6 @@ void SplitEditor::splitSingleBlock(const SplitAnalysis::BlockInfo &BI) {
     useIntv(SegStart, SegStop);
     overlapIntv(SegStop, BI.LastUse);
   }
-  closeIntv();
 }
 
 /// splitSingleBlocks - Split CurLI into a separate live interval inside each
index 688e4a5fcfa69897af7d1197f0c39e2166339b34..c45b83b0679355765690db5376410d3a122ff3ec 100644 (file)
@@ -337,10 +337,6 @@ public:
   ///
   void overlapIntv(SlotIndex Start, SlotIndex End);
 
-  /// closeIntv - Indicate that we are done editing the currently open
-  /// LiveInterval, and ranges can be trimmed.
-  void closeIntv();
-
   /// finish - after all the new live ranges have been created, compute the
   /// remaining live range, and rewrite instructions to use the new registers.
   void finish();