[llvm-commits] [llvm] r40079 - /llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Owen Anderson resistor at mac.com
Thu Jul 19 23:16:07 PDT 2007


Author: resistor
Date: Fri Jul 20 01:16:07 2007
New Revision: 40079

URL: http://llvm.org/viewvc/llvm-project?rev=40079&view=rev
Log:
When removing instructions from the analysis, be sure to check the confirmed
flag when determining what to do with dependencies.

Modified:
    llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp

Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=40079&r1=40078&r2=40079&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Fri Jul 20 01:16:07 2007
@@ -248,7 +248,8 @@
 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++;





More information about the llvm-commits mailing list