[PATCH] D32775: Provide an invalidate method in ProfileSummaryInfo that returns false
Easwaran Raman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 5 15:28:23 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL302308: Override invalidate of ProfileSummaryInfo to return false. (authored by eraman).
Changed prior to commit:
https://reviews.llvm.org/D32775?vs=97526&id=98031#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32775
Files:
llvm/trunk/include/llvm/Analysis/ProfileSummaryInfo.h
Index: llvm/trunk/include/llvm/Analysis/ProfileSummaryInfo.h
===================================================================
--- llvm/trunk/include/llvm/Analysis/ProfileSummaryInfo.h
+++ llvm/trunk/include/llvm/Analysis/ProfileSummaryInfo.h
@@ -54,6 +54,18 @@
ProfileSummaryInfo(Module &M) : M(M) {}
ProfileSummaryInfo(ProfileSummaryInfo &&Arg)
: M(Arg.M), Summary(std::move(Arg.Summary)) {}
+
+ /// Handle the invalidation of this information.
+ ///
+ /// When used as a result of \c ProfileSummaryAnalysis this method will be
+ /// called when the module this was computed for changes. Since profile
+ /// summary is immutable after it is annotated on the module, we return false
+ /// here.
+ bool invalidate(Module &, const PreservedAnalyses &,
+ ModuleAnalysisManager::Invalidator &) {
+ return false;
+ }
+
/// Returns the profile count for \p CallInst.
static Optional<uint64_t> getProfileCount(const Instruction *CallInst,
BlockFrequencyInfo *BFI);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32775.98031.patch
Type: text/x-patch
Size: 1053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170505/0021542f/attachment.bin>
More information about the llvm-commits
mailing list