summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveRangeEdit.cpp
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 /lib/CodeGen/LiveRangeEdit.cpp
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 'lib/CodeGen/LiveRangeEdit.cpp')
-rw-r--r--lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveRangeEdit.cpp b/lib/CodeGen/LiveRangeEdit.cpp
index 86271116f4..9c374b1501 100644
--- a/lib/CodeGen/LiveRangeEdit.cpp
+++ b/lib/CodeGen/LiveRangeEdit.cpp
@@ -278,7 +278,7 @@ void LiveRangeEdit::eliminateDeadDef(MachineInstr *MI, ToShrinkSet &ToShrink) {
// Always shrink COPY uses that probably come from live range splitting.
if (MI->readsVirtualRegister(Reg) &&
(MI->isCopy() || MOI->isDef() || MRI.hasOneNonDBGUse(Reg) ||
- LI.isKilledAtInstr(Idx)))
+ LiveRangeQuery(LI, Idx).isKill()))
ToShrink.insert(&LI);
// Remove defined value.