summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorAndrew Ng <anng.sw@gmail.com>2017-04-25 14:36:01 +0000
committerAndrew Ng <anng.sw@gmail.com>2017-04-25 14:36:01 +0000
commit049ed153af55824fadf1d80afeee0691b1085f9d (patch)
tree62dd4d45ad15eeb8e5a12b15d99123d04cb1cc01 /llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
parent11e78c2bff87f65a919604e48f7e958661cecf92 (diff)
downloadbcm5719-llvm-049ed153af55824fadf1d80afeee0691b1085f9d.tar.gz
bcm5719-llvm-049ed153af55824fadf1d80afeee0691b1085f9d.zip
Revert "[DebugInfo][X86] Fix handling of DBG_VALUE's in post-RA scheduler."
This reverts commit r301309 which is causing buildbot assertion failures. llvm-svn: 301312
Diffstat (limited to 'llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp')
-rw-r--r--llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
index 3a57772cc7f..955524c2a67 100644
--- a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
@@ -964,8 +964,10 @@ unsigned AggressiveAntiDepBreaker::BreakAntiDependencies(
// sure to update that as well.
const SUnit *SU = MISUnitMap[Q.second.Operand->getParent()];
if (!SU) continue;
- UpdateDbgValues(DbgValues, Q.second.Operand->getParent(),
- AntiDepReg, NewReg);
+ for (DbgValueVector::iterator DVI = DbgValues.begin(),
+ DVE = DbgValues.end(); DVI != DVE; ++DVI)
+ if (DVI->second == Q.second.Operand->getParent())
+ UpdateDbgValue(*DVI->first, AntiDepReg, NewReg);
}
// We just went back in time and modified history; the
OpenPOWER on IntegriCloud