aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/MemoryDependenceAnalysis.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-02-12 21:15:18 +0000
committerOwen Anderson <resistor@mac.com>2008-02-12 21:15:18 +0000
commit30b4bd4d1099764db4f1e1a955b7f7cc9dafdd97 (patch)
treeaeebcb3776257baf3416a9e4a5d10493b7a767ac /include/llvm/Analysis/MemoryDependenceAnalysis.h
parent014e04a5daeb312b1f0ebc1dd906ffc97c4abc5f (diff)
Re-apply the patch to improve the optimizations of memcpy's, with several
bugs fixed. This now passes PPC bootstrap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47026 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index 356f8214c3..c6ef41ff24 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -100,6 +100,11 @@ class MemoryDependenceAnalysis : public FunctionPass {
/// updating the dependence of instructions that previously depended on it.
void removeInstruction(Instruction* rem);
+ /// dropInstruction - Remove an instruction from the analysis, making
+ /// absolutely conservative assumptions when updating the cache. This is
+ /// useful, for example when an instruction is changed rather than removed.
+ void dropInstruction(Instruction* drop);
+
private:
Instruction* getCallSiteDependency(CallSite C, Instruction* start,
BasicBlock* block);