From ff60477306946ea9ddaa1c51fc007394d5549b92 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Fri, 30 Aug 2013 04:31:01 +0000 Subject: Replace LiveInterval::killedAt with isKilledAtInstr. Return true for LRGs that end at EarlyClobber or Register slots. llvm-svn: 189642 --- llvm/lib/CodeGen/RegisterPressure.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/RegisterPressure.cpp') diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp index 188750dbc00..8328b500af1 100644 --- a/llvm/lib/CodeGen/RegisterPressure.cpp +++ b/llvm/lib/CodeGen/RegisterPressure.cpp @@ -496,7 +496,7 @@ bool RegPressureTracker::recede(PressureDiff *PDiff) { // Adjust liveouts if LiveIntervals are available. if (RequireIntervals) { const LiveInterval *LI = getInterval(Reg); - if (LI && !LI->killedAt(SlotIdx)) + if (LI && !LI->isKilledAtInstr(SlotIdx)) discoverLiveOut(Reg); } increaseRegPressure(Reg); @@ -550,7 +550,7 @@ bool RegPressureTracker::advance() { bool lastUse = false; if (RequireIntervals) { const LiveInterval *LI = getInterval(Reg); - lastUse = LI && LI->killedAt(SlotIdx); + lastUse = LI && LI->isKilledAtInstr(SlotIdx); } else { // Allocatable physregs are always single-use before register rewriting. @@ -886,7 +886,7 @@ void RegPressureTracker::bumpDownwardPressure(const MachineInstr *MI) { // to be bottom-scheduled to avoid searching uses at each query. SlotIndex CurrIdx = getCurrSlot(); const LiveInterval *LI = getInterval(Reg); - if (LI && LI->killedAt(SlotIdx) + if (LI && LI->isKilledAtInstr(SlotIdx) && !findUseBetween(Reg, CurrIdx, SlotIdx, MRI, LIS)) { decreaseRegPressure(Reg); } -- cgit v1.2.3