forked from OSchip/llvm-project
Ignore DBG_VALUE in a couple more places.
llvm-svn: 96207
This commit is contained in:
parent
7538eec67b
commit
c704ea1c51
|
@ -492,7 +492,8 @@ MachineInstr *RALocal::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI,
|
||||||
if (unsigned PR = getVirt2PhysRegMapSlot(VirtReg)) {
|
if (unsigned PR = getVirt2PhysRegMapSlot(VirtReg)) {
|
||||||
MarkPhysRegRecentlyUsed(PR); // Already have this value available!
|
MarkPhysRegRecentlyUsed(PR); // Already have this value available!
|
||||||
MI->getOperand(OpNum).setReg(PR); // Assign the input register
|
MI->getOperand(OpNum).setReg(PR); // Assign the input register
|
||||||
getVirtRegLastUse(VirtReg) = std::make_pair(MI, OpNum);
|
if (!MI->isDebugValue())
|
||||||
|
getVirtRegLastUse(VirtReg) = std::make_pair(MI, OpNum);
|
||||||
return MI;
|
return MI;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -609,6 +610,8 @@ void RALocal::ComputeLocalLiveness(MachineBasicBlock& MBB) {
|
||||||
DenseMap<unsigned, std::pair<MachineInstr*, unsigned> > LastUseDef;
|
DenseMap<unsigned, std::pair<MachineInstr*, unsigned> > LastUseDef;
|
||||||
for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end();
|
for (MachineBasicBlock::iterator I = MBB.begin(), E = MBB.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
|
if (I->isDebugValue())
|
||||||
|
continue;
|
||||||
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) {
|
||||||
MachineOperand& MO = I->getOperand(i);
|
MachineOperand& MO = I->getOperand(i);
|
||||||
// Uses don't trigger any flags, but we need to save
|
// Uses don't trigger any flags, but we need to save
|
||||||
|
|
Loading…
Reference in New Issue