mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Remember to update LiveDebugVariables after per-block splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dab35d33ae
commit
1f8804263f
@ -1032,7 +1032,7 @@ void RAGreedy::splitAroundRegion(LiveRangeEdit &LREdit,
|
|||||||
|
|
||||||
SmallVector<unsigned, 8> IntvMap;
|
SmallVector<unsigned, 8> IntvMap;
|
||||||
SE->finish(&IntvMap);
|
SE->finish(&IntvMap);
|
||||||
DebugVars->splitRegister(SA->getParent().reg, LREdit.regs());
|
DebugVars->splitRegister(Reg, LREdit.regs());
|
||||||
|
|
||||||
ExtraRegInfo.resize(MRI->getNumVirtRegs());
|
ExtraRegInfo.resize(MRI->getNumVirtRegs());
|
||||||
unsigned OrigBlocks = SA->getNumLiveBlocks();
|
unsigned OrigBlocks = SA->getNumLiveBlocks();
|
||||||
@ -1228,6 +1228,10 @@ unsigned RAGreedy::tryBlockSplit(LiveInterval &VirtReg, AllocationOrder &Order,
|
|||||||
|
|
||||||
// We did split for some blocks.
|
// We did split for some blocks.
|
||||||
SE->finish();
|
SE->finish();
|
||||||
|
|
||||||
|
// Tell LiveDebugVariables about the new ranges.
|
||||||
|
DebugVars->splitRegister(Reg, LREdit.regs());
|
||||||
|
|
||||||
setStage(NewVRegs.begin(), NewVRegs.end(), RS_Spill);
|
setStage(NewVRegs.begin(), NewVRegs.end(), RS_Spill);
|
||||||
if (VerifyEnabled)
|
if (VerifyEnabled)
|
||||||
MF->verify(this, "After splitting live range around basic blocks");
|
MF->verify(this, "After splitting live range around basic blocks");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user