summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveRangeEdit.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-08-30 04:31:01 +0000
committerAndrew Trick <atrick@apple.com>2013-08-30 04:31:01 +0000
commitff60477306946ea9ddaa1c51fc007394d5549b92 (patch)
tree0424166484a1573c1490390b58e5883a47c0b9ce /llvm/lib/CodeGen/LiveRangeEdit.cpp
parentb1a45b6c610bf66c45606ea3e0f8cc62ba5199d0 (diff)
downloadbcm5719-llvm-ff60477306946ea9ddaa1c51fc007394d5549b92.tar.gz
bcm5719-llvm-ff60477306946ea9ddaa1c51fc007394d5549b92.zip
Replace LiveInterval::killedAt with isKilledAtInstr.
Return true for LRGs that end at EarlyClobber or Register slots. llvm-svn: 189642
Diffstat (limited to 'llvm/lib/CodeGen/LiveRangeEdit.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveRangeEdit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveRangeEdit.cpp b/llvm/lib/CodeGen/LiveRangeEdit.cpp
index ca64729ab90..86271116f4e 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.killedAt(Idx)))
+ LI.isKilledAtInstr(Idx)))
ToShrink.insert(&LI);
// Remove defined value.
OpenPOWER on IntegriCloud