[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


================
@@ -1157,8 +1153,12 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
   const bool IsPGOInstrUse =
       IsPGOPreLink && PGOOpt->Action == PGOOptions::IRUse;
   const bool IsMemprofUse = IsPGOPreLink && !PGOOpt->MemoryProfile.empty();
+  // We don't want to mix pgo ctx gen and pgo gen; we also don't currently
----------------
teresajohnson wrote:

should there be an assert that fires if both are enabled?

https://github.com/llvm/llvm-project/pull/92445


More information about the llvm-commits mailing list