[llvm] [ctx_profile] Decouple ctx instrumentation from PGOOpt (PR #92445)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 13:41:09 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));
----------------
mtrofin wrote:
done.
https://github.com/llvm/llvm-project/pull/92445
More information about the llvm-commits
mailing list