aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/MemoryDependenceAnalysis.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-21 07:34:32 +0000
committerChris Lattner <sabre@nondot.org>2010-11-21 07:34:32 +0000
commitf6f1f062cc8029aa75ca7d0e99fbc1e0b453d07e (patch)
treeaaeabb940e1abda8247927a5003401bd865f3085 /include/llvm/Analysis/MemoryDependenceAnalysis.h
parentb7dfb970e60d0e559f9e27e3914a4cbb8e7be5eb (diff)
downloadexternal_llvm-f6f1f062cc8029aa75ca7d0e99fbc1e0b453d07e.zip
external_llvm-f6f1f062cc8029aa75ca7d0e99fbc1e0b453d07e.tar.gz
external_llvm-f6f1f062cc8029aa75ca7d0e99fbc1e0b453d07e.tar.bz2
implement PR8576, deleting dead stores with intervening may-alias stores.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index cc34992..c9c8116 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -335,11 +335,19 @@ namespace llvm {
/// critical edges.
void invalidateCachedPredecessors();
- private:
+ /// getPointerDependencyFrom - Return the instruction on which a memory
+ /// location depends. If isLoad is true, this routine ignores may-aliases
+ /// with read-only operations. If isLoad is false, this routine ignores
+ /// may-aliases with reads from read-only locations.
+ ///
+ /// Note that this is an uncached query, and thus may be inefficient.
+ ///
MemDepResult getPointerDependencyFrom(const AliasAnalysis::Location &Loc,
bool isLoad,
BasicBlock::iterator ScanIt,
BasicBlock *BB);
+
+ private:
MemDepResult getCallSiteDependencyFrom(CallSite C, bool isReadOnlyCall,
BasicBlock::iterator ScanIt,
BasicBlock *BB);