mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 18:24:05 +00:00
When there is a 2-instruction spill sequence, record
the second (store) instruction in SpillSlotToUsesMap consistently. I don't think this matters functionally, but it's cleaner and Evan wants it this way. llvm-svn: 85463
This commit is contained in:
parent
58923e365d
commit
2dcd23d6f7
@ -1432,7 +1432,7 @@ private:
|
||||
|
||||
MachineBasicBlock::iterator oldNextMII = next(MII);
|
||||
TII->storeRegToStackSlot(MBB, next(MII), PhysReg, true, StackSlot, RC);
|
||||
MachineInstr *StoreMI = next(MII);
|
||||
MachineInstr *StoreMI = prior(oldNextMII);
|
||||
VRM.addSpillSlotUse(StackSlot, StoreMI);
|
||||
DEBUG(errs() << "Store:\t" << *StoreMI);
|
||||
|
||||
@ -1751,8 +1751,9 @@ private:
|
||||
const TargetRegisterClass *RC = RegInfo->getRegClass(VirtReg);
|
||||
unsigned Phys = VRM.getPhys(VirtReg);
|
||||
int StackSlot = VRM.getStackSlot(VirtReg);
|
||||
MachineBasicBlock::iterator oldNextMII = next(MII);
|
||||
TII->storeRegToStackSlot(MBB, next(MII), Phys, isKill, StackSlot, RC);
|
||||
MachineInstr *StoreMI = next(MII);
|
||||
MachineInstr *StoreMI = prior(oldNextMII);
|
||||
VRM.addSpillSlotUse(StackSlot, StoreMI);
|
||||
DEBUG(errs() << "Store:\t" << *StoreMI);
|
||||
VRM.virtFolded(VirtReg, StoreMI, VirtRegMap::isMod);
|
||||
|
Loading…
x
Reference in New Issue
Block a user