summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-08-30 17:58:49 +0000
committerAndrew Trick <atrick@apple.com>2013-08-30 17:58:49 +0000
commit846b31d74aa673a178f57f9d47f366d8ddb756d3 (patch)
tree1385f164c015211080b2b2b3228c2fc54856cfa4 /include
parent9bc94276e796d644cb425a7c7d38cc44dbf4e9c1 (diff)
downloadllvm-846b31d74aa673a178f57f9d47f366d8ddb756d3.tar.gz
llvm-846b31d74aa673a178f57f9d47f366d8ddb756d3.tar.bz2
llvm-846b31d74aa673a178f57f9d47f366d8ddb756d3.tar.xz
Use LiveRangeQuery for instruction-level liveness queries.
Remove redundant or bug-prone LiveInterval APIs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LiveInterval.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h
index 38d07e4612..84323deef8 100644
--- a/include/llvm/CodeGen/LiveInterval.h
+++ b/include/llvm/CodeGen/LiveInterval.h
@@ -287,21 +287,6 @@ namespace llvm {
return r != end() && r->start <= index;
}
- /// Return true if a live range ends at the instruction at this index. Note
- /// that the kill point is not contained in the half-open live range. It is
- /// usually the EarlyClobber or Register slot following its last use.
- bool isKilledAtInstr(SlotIndex index) const {
- SlotIndex BaseIdx = index.getBaseIndex();
- const_iterator r = find(BaseIdx);
- return r != end() && r->end.getBaseIndex() == BaseIdx;
- }
-
- /// Return true if a live range starts at the instruction at this index.
- bool isDefinedByInstr(SlotIndex index) const {
- const_iterator r = find(index.getDeadSlot());
- return r != end() && r->end.getBaseIndex() == index.getBaseIndex();
- }
-
/// getLiveRangeContaining - Return the live range that contains the
/// specified index, or null if there is none.
const LiveRange *getLiveRangeContaining(SlotIndex Idx) const {