[llvm] [PGO] Sampled instrumentation in PGO to speed up instrumentation binary (PR #69535)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 16:24:33 PDT 2023
================
@@ -805,6 +808,10 @@ void PassBuilder::addPGOInstrPasses(ModulePassManager &MPM,
// Do counter promotion at Level greater than O0.
Options.DoCounterPromotion = true;
Options.UseBFIInPromotion = IsCS;
+ if (EnableSampledInstr) {
+ Options.Sampling = true;
+ Options.DoCounterPromotion = false;
----------------
snehasish wrote:
Can you add a comment on why counter promotion is turned off?
https://github.com/llvm/llvm-project/pull/69535
More information about the llvm-commits
mailing list