[llvm] [PseudoProbe] Add PseudoProbeDescUpdatePass (PR #99839)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 21 23:23:14 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:
We do. `PseudoProbeUpdatePass` for pseudo-probe.
https://github.com/llvm/llvm-project/pull/99839
More information about the llvm-commits
mailing list