mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 01:56:07 +00:00
After register is spilled there should not be any DBG_VALUE referring the same register.
llvm-svn: 133569
This commit is contained in:
parent
797cff0504
commit
d88b8babe0
@ -293,9 +293,11 @@ void RAFast::spillVirtReg(MachineBasicBlock::iterator MI,
|
||||
MachineBasicBlock *MBB = DBG->getParent();
|
||||
MBB->insert(MI, 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)
|
||||
LR.LastUse = 0; // Don't kill register again
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user