[llvm] [ctx_profile] Decouple ctx instrumentation from PGOOpt (PR #92445)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 12:43:44 PDT 2024
================
@@ -1168,9 +1168,13 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
/*IsCS=*/false, PGOOpt->AtomicCounterUpdate,
PGOOpt->ProfileFile, PGOOpt->ProfileRemappingFile,
PGOOpt->FS);
+ } else if (IsCtxProfGen) {
+ MPM.addPass(PGOInstrumentationGen(false));
----------------
teresajohnson wrote:
document constant parameter
https://github.com/llvm/llvm-project/pull/92445
More information about the llvm-commits
mailing list