mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +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:
@@ -282,6 +282,11 @@ void MemoryDependenceAnalysis::getNonLocalDependency(Instruction* query,
|
|||||||
|
|
||||||
resp = cached;
|
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;
|
return;
|
||||||
} else
|
} else
|
||||||
NumUncacheNonlocal++;
|
NumUncacheNonlocal++;
|
||||||
|
Reference in New Issue
Block a user