mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-13 08:25:27 +00:00
Skip identical instruction while calculating DBG_VALUE range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2180,12 +2180,15 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) {
|
|||||||
if (Processed.count(DV) != 0)
|
if (Processed.count(DV) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
const MachineInstr *PrevMI = MInsn;
|
||||||
for (SmallVector<const MachineInstr *, 8>::iterator MI = I+1,
|
for (SmallVector<const MachineInstr *, 8>::iterator MI = I+1,
|
||||||
ME = DbgValues.end(); MI != ME; ++MI) {
|
ME = DbgValues.end(); MI != ME; ++MI) {
|
||||||
const MDNode *Var =
|
const MDNode *Var =
|
||||||
(*MI)->getOperand((*MI)->getNumOperands()-1).getMetadata();
|
(*MI)->getOperand((*MI)->getNumOperands()-1).getMetadata();
|
||||||
if (Var == DV && isDbgValueInDefinedReg(*MI))
|
if (Var == DV && isDbgValueInDefinedReg(*MI) &&
|
||||||
|
!PrevMI->isIdenticalTo(*MI))
|
||||||
MultipleValues.push_back(*MI);
|
MultipleValues.push_back(*MI);
|
||||||
|
PrevMI = *MI;
|
||||||
}
|
}
|
||||||
|
|
||||||
DbgScope *Scope = findDbgScope(MInsn);
|
DbgScope *Scope = findDbgScope(MInsn);
|
||||||
|
Reference in New Issue
Block a user