[llvm] [NFC] ProfileSummaryInfo: use analysis manager mechanisms for invalidation (PR #86086)

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 22:41:34 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);
----------------
david-xl wrote:

Is this change equivalent? The refresh API early returns if profile summary exists.

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


More information about the llvm-commits mailing list