[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 11:15:01 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:

(offline discussion) adding an assert that we had no PSI.

https://github.com/llvm/llvm-project/pull/86086


More information about the llvm-commits mailing list