mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Use more caching when computing non-local dependence. This makes bzip2 not
use up the entire 32-bit address space. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -752,7 +752,9 @@ bool GVN::processNonLocalLoad(LoadInst* L, SmallVector<Instruction*, 4>& toErase
|
||||
I != E; ++I)
|
||||
if (I->second == MemoryDependenceAnalysis::None) {
|
||||
return false;
|
||||
} else if (StoreInst* S = dyn_cast<StoreInst>(I->second)) {
|
||||
} else if (I->second == MemoryDependenceAnalysis::NonLocal) {
|
||||
continue;
|
||||
}else if (StoreInst* S = dyn_cast<StoreInst>(I->second)) {
|
||||
if (S->getPointerOperand() == L->getPointerOperand())
|
||||
repl.insert(std::make_pair(I->first, S->getOperand(0)));
|
||||
else
|
||||
|
Reference in New Issue
Block a user