aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-23 18:37:30 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-23 18:37:30 +0000
commit01079311e153dae59a38aa0cdf5332eb3e410abf (patch)
treed90c6cbe615355810dd236938133578c536ab1da /lib/CodeGen/AsmPrinter
parentdb3480c432bff2be4ab26630343545ba66f00dac (diff)
downloadexternal_llvm-01079311e153dae59a38aa0cdf5332eb3e410abf.zip
external_llvm-01079311e153dae59a38aa0cdf5332eb3e410abf.tar.gz
external_llvm-01079311e153dae59a38aa0cdf5332eb3e410abf.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 7c50b1e..58d51ea 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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;