Delete dead code.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 4 Jun 2012 23:01:41 +0000 (23:01 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 4 Jun 2012 23:01:41 +0000 (23:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157963 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/LiveIntervalAnalysis.cpp

index edf80f5f2eea0c0b8735d98306e7371799b01a9e..39df32cf4bc16d512e80d43d7f3a9c855362f249 100644 (file)
@@ -151,10 +151,6 @@ namespace llvm {
       return *I->second;
     }
 
-    /// dupInterval - Duplicate a live interval. The caller is responsible for
-    /// managing the allocated memory.
-    LiveInterval *dupInterval(LiveInterval *li);
-
     /// addLiveRangeToEndOfBlock - Given a register and an instruction,
     /// adds a live range from that instruction to the end of its MBB.
     LiveRange addLiveRangeToEndOfBlock(unsigned reg,
index 85d95d086a2a929d2f5646509e892ef8ad5466bf..d406e64deb99e0d957631d7a8581f8189b4c3340 100644 (file)
@@ -626,14 +626,6 @@ LiveInterval* LiveIntervals::createInterval(unsigned reg) {
   return new LiveInterval(reg, Weight);
 }
 
-/// dupInterval - Duplicate a live interval. The caller is responsible for
-/// managing the allocated memory.
-LiveInterval* LiveIntervals::dupInterval(LiveInterval *li) {
-  LiveInterval *NewLI = createInterval(li->reg);
-  NewLI->Copy(*li, MRI, getVNInfoAllocator());
-  return NewLI;
-}
-
 /// shrinkToUses - After removing some uses of a register, shrink its live
 /// range to just the remaining uses. This method does not compute reaching
 /// defs for new uses, and it doesn't remove dead defs.