[llvm] [NFC] ProfileSummaryInfo: use analysis manager mechanisms for invalidation (PR #86086)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 12:44:36 PDT 2024
================
@@ -1991,7 +1993,7 @@ static bool annotateAllFunctions(
M.setProfileSummary(PGOReader->getSummary(IsCS).getMD(M.getContext()),
IsCS ? ProfileSummary::PSK_CSInstr
: ProfileSummary::PSK_Instr);
- PSI->refresh();
+ auto *PSI = AbandonAndRefreshPSI(M);
----------------
mtrofin wrote:
actually there could be one when we do csfdo, for example. So we do mean "abandon"
https://github.com/llvm/llvm-project/pull/86086
More information about the llvm-commits
mailing list