[clang] [PGO] Add ability to mark cold functions as optsize/minsize/optnone (PR #69030)
    Ellis Hoag via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Mon Oct 16 16:49:04 PDT 2023
    
    
  
================
@@ -1127,6 +1134,11 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
   if (EnableSyntheticCounts && !PGOOpt)
     MPM.addPass(SyntheticCountsPropagation());
 
+  if (EnableMarkColdFunctions && PGOOpt &&
+      (PGOOpt->Action == PGOOptions::SampleUse ||
+       PGOOpt->Action == PGOOptions::IRUse))
----------------
ellishg wrote:
It seems that this pass isn't enabled for CS profiles. Can they benefit from this pass?
https://github.com/llvm/llvm-project/pull/69030
    
    
More information about the cfe-commits
mailing list