mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Skip identical instruction while calculating DBG_VALUE range.
llvm-svn: 105340
This commit is contained in:
parent
fd208cef5d
commit
5fb0590e9c
@ -2180,12 +2180,15 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) {
|
||||
if (Processed.count(DV) != 0)
|
||||
continue;
|
||||
|
||||
const MachineInstr *PrevMI = MInsn;
|
||||
for (SmallVector<const MachineInstr *, 8>::iterator MI = I+1,
|
||||
ME = DbgValues.end(); MI != ME; ++MI) {
|
||||
const MDNode *Var =
|
||||
(*MI)->getOperand((*MI)->getNumOperands()-1).getMetadata();
|
||||
if (Var == DV && isDbgValueInDefinedReg(*MI))
|
||||
if (Var == DV && isDbgValueInDefinedReg(*MI) &&
|
||||
!PrevMI->isIdenticalTo(*MI))
|
||||
MultipleValues.push_back(*MI);
|
||||
PrevMI = *MI;
|
||||
}
|
||||
|
||||
DbgScope *Scope = findDbgScope(MInsn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user