[llvm] [ctx_prof] "Use" support for pre-thinlink. (PR #101338)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 09:19:32 PDT 2024
================
@@ -1176,8 +1180,11 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
// Enable contextual profiling instrumentation.
const bool IsCtxProfGen = !IsPGOInstrGen && IsPreLink &&
PGOCtxProfLoweringPass::isContextualIRPGOEnabled();
+ const bool IsCtxProfUse = !UseCtxProfile.empty() && !PGOOpt &&
----------------
mtrofin wrote:
maybe, but I'm not seeing the usual error handling mechanism here; also, eventually I want to use PGOOpt (after some refactoring, because right now it's state is quite involved, see its ctor). While ctx_prof is in development, seems overkill to solve all these.
https://github.com/llvm/llvm-project/pull/101338
More information about the llvm-commits
mailing list