Remove dead method.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 21 Sep 2010 17:12:15 +0000 (17:12 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 21 Sep 2010 17:12:15 +0000 (17:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114447 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 450d4b4a3fac90a7935b5c8a787ba05f15f5f3fd..33d3d12febcc51f0b821e1da905dc2289f225e70 100644 (file)
@@ -388,11 +388,6 @@ namespace llvm {
 
     bool liveAt(SlotIndex index) const;
 
-    // liveBeforeAndAt - Check if the interval is live at the index and the
-    // index just before it. If index is liveAt, check if it starts a new live
-    // range.If it does, then check if the previous live range ends at index-1.
-    bool liveBeforeAndAt(SlotIndex index) const;
-
     /// killedAt - Return true if a live range ends at index. Note that the kill
     /// point is not contained in the half-open live range. It is usually the
     /// getDefIndex() slot following its last use.
index 03d8e95798d99e28a2bb1b480eb554174d6cdcae..513a6c0835dcc81abad1cb77d3e5edf37dac87c6 100644 (file)
@@ -47,27 +47,6 @@ bool LiveInterval::liveAt(SlotIndex I) const {
   return r->contains(I);
 }
 
-// liveBeforeAndAt - Check if the interval is live at the index and the index
-// just before it. If index is liveAt, check if it starts a new live range.
-// If it does, then check if the previous live range ends at index-1.
-bool LiveInterval::liveBeforeAndAt(SlotIndex I) const {
-  Ranges::const_iterator r = std::upper_bound(ranges.begin(), ranges.end(), I);
-
-  if (r == ranges.begin())
-    return false;
-
-  --r;
-  if (!r->contains(I))
-    return false;
-  if (I != r->start)
-    return true;
-  // I is the start of a live range. Check if the previous live range ends
-  // at I-1.
-  if (r == ranges.begin())
-    return false;
-  return r->end == I;
-}
-
 /// killedAt - Return true if a live range ends at index. Note that the kill
 /// point is not contained in the half-open live range. It is usually the
 /// getDefIndex() slot following its last use.