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:
Owen Anderson
2007-09-21 03:53:52 +00:00
parent 76a4023096
commit ce4d88aa64
2 changed files with 34 additions and 3 deletions

View File

@ -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