[clang] [llvm] [PGO] Add ability to mark cold functions as optsize/minsize/optnone (PR #69030)
Arthur Eubanks via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 23 14:05:08 PST 2024
================
@@ -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))
----------------
aeubanks wrote:
actually based on the other comment to also apply to manually marked cold functions, now always run this regardless of `PGOOpt`
https://github.com/llvm/llvm-project/pull/69030
More information about the cfe-commits
mailing list