diff options
author | Owen Anderson <resistor@mac.com> | 2007-08-01 22:01:54 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-08-01 22:01:54 +0000 |
commit | 9066020993695a690c1f979f9cac4e14d325e237 (patch) | |
tree | 96d88a34a49128b109c6423bbc6de462bb738a52 /include/llvm | |
parent | c5dd54154acfd222a39cbdc01e4d5202a78f268b (diff) | |
download | external_llvm-9066020993695a690c1f979f9cac4e14d325e237.zip external_llvm-9066020993695a690c1f979f9cac4e14d325e237.tar.gz external_llvm-9066020993695a690c1f979f9cac4e14d325e237.tar.bz2 |
Make non-local memdep not be recursive, and fix a bug on 403.gcc that this exposed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/MemoryDependenceAnalysis.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 7546eda..ac6ffb6 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -43,9 +43,8 @@ class MemoryDependenceAnalysis : public FunctionPass { Instruction* getCallSiteDependency(CallSite C, Instruction* start, bool local = true); - bool nonLocalHelper(Instruction* query, BasicBlock* block, - DenseMap<BasicBlock*, Value*>& resp, - SmallPtrSet<BasicBlock*, 4>& visited); + void nonLocalHelper(Instruction* query, BasicBlock* block, + DenseMap<BasicBlock*, Value*>& resp); public: static Instruction* NonLocal; @@ -74,7 +73,7 @@ class MemoryDependenceAnalysis : public FunctionPass { Instruction* getDependency(Instruction* query, Instruction* start = 0, BasicBlock* block = 0); - bool getNonLocalDependency(Instruction* query, + void getNonLocalDependency(Instruction* query, DenseMap<BasicBlock*, Value*>& resp); /// removeInstruction - Remove an instruction from the dependence analysis, |