diff options
author | Owen Anderson <resistor@mac.com> | 2007-09-21 03:53:52 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-09-21 03:53:52 +0000 |
commit | ce4d88aa644647a21f75f86cd26476fa3f23b396 (patch) | |
tree | 88302dfb67b1789dd3d47d9437a1fbe9527b6f7f /lib/Transforms | |
parent | 76a4023096fc330db11d711197388d9f3ba91cc6 (diff) |
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index c6b50a4002..d9cff01f2c 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -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 |