mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
Remember to update the reverse non-local cache when cleaning up dirty entries. This fixes PR2397.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51846 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8f34fa3d6
commit
6bd15ce03f
@ -282,6 +282,11 @@ void MemoryDependenceAnalysis::getNonLocalDependency(Instruction* query,
|
||||
|
||||
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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user