[llvm] [PseudoProbe] Add PseudoProbeDescUpdatePass (PR #99839)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 21 23:18:04 PDT 2024
================
@@ -1581,9 +1581,12 @@ PassBuilder::buildPerModuleDefaultPipeline(OptimizationLevel Level,
// Now add the optimization pipeline.
MPM.addPass(buildModuleOptimizationPipeline(Level, LTOPhase));
- if (PGOOpt && PGOOpt->PseudoProbeForProfiling &&
- PGOOpt->Action == PGOOptions::SampleUse)
- MPM.addPass(PseudoProbeUpdatePass());
+ if (PGOOpt && PGOOpt->PseudoProbeForProfiling) {
+ if (PGOOpt->Action == PGOOptions::SampleUse)
+ MPM.addPass(PseudoProbeUpdatePass());
+ else
+ MPM.addPass(PseudoProbeDescUpdatePass());
----------------
WenleiHe wrote:
Why is this not applicable to SampleUse path?
https://github.com/llvm/llvm-project/pull/99839
More information about the llvm-commits
mailing list