mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-28 15:38:57 +00:00
Don't emit a DBG_VALUE for a spill slot that the rewriter decided not to use after all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12a40314a9
commit
f0704d28f3
@ -568,7 +568,8 @@ UserValue::rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI) {
|
|||||||
if (VRM.isAssignedReg(VirtReg) &&
|
if (VRM.isAssignedReg(VirtReg) &&
|
||||||
TargetRegisterInfo::isPhysicalRegister(VRM.getPhys(VirtReg))) {
|
TargetRegisterInfo::isPhysicalRegister(VRM.getPhys(VirtReg))) {
|
||||||
Loc.substPhysReg(VRM.getPhys(VirtReg), TRI);
|
Loc.substPhysReg(VRM.getPhys(VirtReg), TRI);
|
||||||
} else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT) {
|
} else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT &&
|
||||||
|
VRM.isSpillSlotUsed(VRM.getStackSlot(VirtReg))) {
|
||||||
// FIXME: Translate SubIdx to a stackslot offset.
|
// FIXME: Translate SubIdx to a stackslot offset.
|
||||||
Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg));
|
Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user