[llvm-commits] [llvm] r51846 - /llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
Owen Anderson
resistor at mac.com
Sun Jun 1 14:03:52 PDT 2008
Author: resistor
Date: Sun Jun 1 16:03:52 2008
New Revision: 51846
URL: http://llvm.org/viewvc/llvm-project?rev=51846&view=rev
Log:
Remember to update the reverse non-local cache when cleaning up dirty entries. This fixes PR2397.
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=51846&r1=51845&r2=51846&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Sun Jun 1 16:03:52 2008
@@ -282,6 +282,11 @@
resp = cached;
+ // Update the reverse non-local dependency cache
+ for (DenseMap<BasicBlock*, Value*>::iterator I = resp.begin(), E = resp.end();
+ I != E; ++I)
+ reverseDepNonLocal[I->second].insert(query);
+
return;
} else
NumUncacheNonlocal++;
More information about the llvm-commits
mailing list