diff options
| author | Andrew Trick <atrick@apple.com> | 2013-08-30 17:58:49 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2013-08-30 17:58:49 +0000 |
| commit | 3bf33075ce98e380fc0ba7aeb5928f1151019887 (patch) | |
| tree | 87c5f0f62675b901781839b29c8de73c506cd02d /llvm/lib/CodeGen/LiveRangeEdit.cpp | |
| parent | 9b05d806329df11db7faf5aa7d9cc14a01021a34 (diff) | |
| download | bcm5719-llvm-3bf33075ce98e380fc0ba7aeb5928f1151019887.tar.gz bcm5719-llvm-3bf33075ce98e380fc0ba7aeb5928f1151019887.zip | |
Use LiveRangeQuery for instruction-level liveness queries.
Remove redundant or bug-prone LiveInterval APIs.
llvm-svn: 189685
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveRangeEdit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp index 86271116f4e..9c374b15019 100644 --- a/llvm/lib/CodeGen/LiveRangeEdit.cpp +++ b/llvm/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. |

