[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 15:04:49 PDT 2024
    
    
  
================
@@ -2157,10 +2159,16 @@ PreservedAnalyses PGOInstrumentationUse::run(Module &M,
     return &FAM.getResult<BlockFrequencyAnalysis>(F);
   };
 
-  auto *PSI = &MAM.getResult<ProfileSummaryAnalysis>(M);
+  auto AbandonAndRefreshPSI = [&MAM](Module &M) {
----------------
mtrofin wrote:
I like that. We'd need the MAM passed through, but that then also allows dropping the `Lookup`xyz parameters, so simpler API.
https://github.com/llvm/llvm-project/pull/86086
    
    
More information about the llvm-commits
mailing list