summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2019-04-29 23:53:04 +0000
committerAlina Sbirlea <asbirlea@google.com>2019-04-29 23:53:04 +0000
commit9a1edd14a2202540ec91e7ed2e187c49e574ea4a (patch)
treed1fec28a90ec249269e4bf9c8d37b962c385853a /llvm/include
parent99bad3701344665366e06f7a17f30ae7c5a94fec (diff)
downloadbcm5719-llvm-9a1edd14a2202540ec91e7ed2e187c49e574ea4a.tar.gz
bcm5719-llvm-9a1edd14a2202540ec91e7ed2e187c49e574ea4a.zip
[MemorySSA] Invalidate MemorySSA if AA or DT are invalidated.
Summary: MemorySSA keeps internal pointers of AA and DT. If these get invalidated, so should MemorySSA. Reviewers: george.burgess.iv, chandlerc Subscribers: jlebar, Prazek, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D61043 llvm-svn: 359519
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/MemorySSA.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/MemorySSA.h b/llvm/include/llvm/Analysis/MemorySSA.h
index 8812da6016a..a0a1030c5df 100644
--- a/llvm/include/llvm/Analysis/MemorySSA.h
+++ b/llvm/include/llvm/Analysis/MemorySSA.h
@@ -936,6 +936,9 @@ public:
MemorySSA &getMSSA() { return *MSSA.get(); }
std::unique_ptr<MemorySSA> MSSA;
+
+ bool invalidate(Function &F, const PreservedAnalyses &PA,
+ FunctionAnalysisManager::Invalidator &Inv);
};
Result run(Function &F, FunctionAnalysisManager &AM);
OpenPOWER on IntegriCloud