mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Stop tracking spill slot uses in VirtRegMap.
Nobody cared, StackSlotColoring scans the instructions to find used stack slots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -889,8 +889,7 @@ UserValue::rewriteLocations(VirtRegMap &VRM, const TargetRegisterInfo &TRI) {
|
||||
// index is no longer available. That means the user value is in a
|
||||
// non-existent sub-register, and %noreg is exactly what we want.
|
||||
Loc.substPhysReg(VRM.getPhys(VirtReg), TRI);
|
||||
} else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT &&
|
||||
VRM.isSpillSlotUsed(VRM.getStackSlot(VirtReg))) {
|
||||
} else if (VRM.getStackSlot(VirtReg) != VirtRegMap::NO_STACK_SLOT) {
|
||||
// FIXME: Translate SubIdx to a stackslot offset.
|
||||
Loc = MachineOperand::CreateFI(VRM.getStackSlot(VirtReg));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user