summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-21 17:12:15 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-09-21 17:12:15 +0000
commit04610c63cb821c9ef1332c82eeedc6d593ca01b0 (patch)
treef0b9cacec3d44136f2dd3d2d01da40898304837b /llvm/lib
parent3d178ed4d4535d2fcb76f06f1923a7337e14b877 (diff)
downloadbcm5719-llvm-04610c63cb821c9ef1332c82eeedc6d593ca01b0.tar.gz
bcm5719-llvm-04610c63cb821c9ef1332c82eeedc6d593ca01b0.zip
Remove dead method.
llvm-svn: 114447
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LiveInterval.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp
index 03d8e95798d..513a6c0835d 100644
--- a/llvm/lib/CodeGen/LiveInterval.cpp
+++ b/llvm/lib/CodeGen/LiveInterval.cpp
@@ -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.
OpenPOWER on IntegriCloud