mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-02 09:33:59 +00:00
After register is spilled there should not be any DBG_VALUE referring the same register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133569 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b6a44afb9
commit
6f373a87cb
@ -293,9 +293,11 @@ void RAFast::spillVirtReg(MachineBasicBlock::iterator MI,
|
|||||||
MachineBasicBlock *MBB = DBG->getParent();
|
MachineBasicBlock *MBB = DBG->getParent();
|
||||||
MBB->insert(MI, NewDV);
|
MBB->insert(MI, NewDV);
|
||||||
DEBUG(dbgs() << "Inserting debug info due to spill:" << "\n" << *NewDV);
|
DEBUG(dbgs() << "Inserting debug info due to spill:" << "\n" << *NewDV);
|
||||||
LRIDbgValues[li] = NewDV;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Now this register is spilled there is should not be any DBG_VALUE pointing
|
||||||
|
// to this register because they are all pointing to spilled value now.
|
||||||
|
LRIDbgValues.clear();
|
||||||
if (SpillKill)
|
if (SpillKill)
|
||||||
LR.LastUse = 0; // Don't kill register again
|
LR.LastUse = 0; // Don't kill register again
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user