[PATCH] D24993: Fix the bug when -compile-twice is specified, the PSI will be invalidated.
David Li via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 27 17:38:28 PDT 2016
davidxl added a comment.
How about a test case?
================
Comment at: include/llvm/Analysis/ProfileSummaryInfo.h:63
@@ -62,1 +62,3 @@
+ /// \brief Checks if \p newM is up-to-date, if not, invalidate Summary.
+ void resetM(Module *NewM);
};
----------------
resetModule
================
Comment at: lib/Analysis/ProfileSummaryInfo.cpp:120
@@ +119,3 @@
+ M = newM;
+ delete Summary.release();
+}
----------------
Summary.reset(nullptr);
https://reviews.llvm.org/D24993
More information about the llvm-commits
mailing list