mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Add partial caching of non-local memory dependence queries. This provides a modest
speedup for GVN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42185 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -834,7 +834,7 @@ bool GVN::processNonLocalLoad(LoadInst* L,
|
||||
return false;
|
||||
} else if (I->second == MemoryDependenceAnalysis::NonLocal) {
|
||||
continue;
|
||||
}else if (StoreInst* S = dyn_cast<StoreInst>(I->second)) {
|
||||
} else if (StoreInst* S = dyn_cast<StoreInst>(I->second)) {
|
||||
if (S->getPointerOperand() == L->getPointerOperand())
|
||||
repl[I->first] = S->getOperand(0);
|
||||
else
|
||||
|
Reference in New Issue
Block a user