diff options
author | Owen Anderson <resistor@mac.com> | 2007-07-20 06:16:07 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-07-20 06:16:07 +0000 |
commit | 521a20207ca5ed8fbe3f8a0537a286478277fb3f (patch) | |
tree | 23f0fa51aefc2bc46deba025e8ffacf0627749db /lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | 7800479260c1f4cd69daf9e33615bedb6305e5b4 (diff) |
When removing instructions from the analysis, be sure to check the confirmed
flag when determining what to do with dependencies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 498e54c727..3ec733f9e4 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -248,7 +248,8 @@ Instruction* MemoryDependenceAnalysis::getDependency(Instruction* query, void MemoryDependenceAnalysis::removeInstruction(Instruction* rem) { // Figure out the new dep for things that currently depend on rem Instruction* newDep = NonLocal; - if (depGraphLocal[rem].first != NonLocal) { + if (depGraphLocal[rem].first != NonLocal && + depGraphLocal[rem].second) { // If we have dep info for rem, set them to it BasicBlock::iterator RI = depGraphLocal[rem].first; RI++; |