diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-23 18:37:30 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-23 18:37:30 +0000 |
commit | a87d80cdcae9f8e4107556a1a8d4c9d15851aa16 (patch) | |
tree | 62fd82b2bd79e033f75f79834f0b6e1f8e0c405b | |
parent | 465f93645f596081310db5e1a7f658ab81f2473c (diff) | |
download | bcm5719-llvm-a87d80cdcae9f8e4107556a1a8d4c9d15851aa16.tar.gz bcm5719-llvm-a87d80cdcae9f8e4107556a1a8d4c9d15851aa16.zip |
Don't coalesce identical DBG_VALUE instructions prematurely.
Each of these instructions may have a RegsClobberInsn entry that can't be
ignored. Consecutive ranges are coalesced later when DwarfDebug::emitDebugLoc
merges entries.
llvm-svn: 128155
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 7c50b1e4607..58d51ea2ac8 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2419,14 +2419,12 @@ 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 && !PrevMI->isIdenticalTo(*MI)) + if (Var == DV) MultipleValues.push_back(*MI); - PrevMI = *MI; } DbgScope *Scope = NULL; |