From 0cd320362e91852c8f7f2c8c4841498aab7f92fa Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 25 Jul 2007 19:57:03 +0000 Subject: Add basic support for performing whole-function RLE. Note: This has not yet been thoroughly tested. Use at your own risk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40489 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/MemoryDependenceAnalysis.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/llvm') diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 8f4fca0..4428bb6 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -38,7 +38,8 @@ class MemoryDependenceAnalysis : public FunctionPass { Instruction* getCallSiteDependency(CallSite C, Instruction* start, bool local = true); - SmallPtrSet nonLocalHelper(Instruction* query, BasicBlock* block); + bool nonLocalHelper(Instruction* query, BasicBlock* block, + DenseMap& resp); public: static Instruction* NonLocal; @@ -67,7 +68,8 @@ class MemoryDependenceAnalysis : public FunctionPass { Instruction* getDependency(Instruction* query, Instruction* start = 0, BasicBlock* block = 0); - SmallPtrSet getNonLocalDependency(Instruction* query); + bool getNonLocalDependency(Instruction* query, + DenseMap& resp); /// removeInstruction - Remove an instruction from the dependence analysis, /// updating the dependence of instructions that previously depended on it. -- cgit v1.1