diff options
author | Owen Anderson <resistor@mac.com> | 2007-07-30 17:29:24 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-07-30 17:29:24 +0000 |
commit | 45c8388e2a94502ded17dc493fe3fb10b04ce439 (patch) | |
tree | 98ebecfe5db2b291532428176c7dcc5102e0bac2 /lib/Analysis/MemoryDependenceAnalysis.cpp | |
parent | 4f9ba7c40c41cae3d9730c5416a2750dea4f0ff4 (diff) | |
download | external_llvm-45c8388e2a94502ded17dc493fe3fb10b04ce439.zip external_llvm-45c8388e2a94502ded17dc493fe3fb10b04ce439.tar.gz external_llvm-45c8388e2a94502ded17dc493fe3fb10b04ce439.tar.bz2 |
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
Diffstat (limited to 'lib/Analysis/MemoryDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/MemoryDependenceAnalysis.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp index 4bd8771..02b0af6 100644 --- a/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -129,6 +129,8 @@ bool MemoryDependenceAnalysis::nonLocalHelper(Instruction* query, if (!inserted && !predOnStack) resp.insert(std::make_pair(block, None)); + else if (inserted && predOnStack) + resp.insert(std::make_pair(block, NonLocal)); return inserted; } |