[llvm] [PGO][SampledInstr] Correct off by 1s and allow 100% sampling (PR #113350)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 22 12:01:25 PDT 2024


================
@@ -184,21 +184,48 @@ static cl::opt<unsigned> SampledInstrPeriod(
     cl::desc("Set the profile instrumentation sample period. For each sample "
----------------
xur-llvm wrote:

Please mention 0 is not a valid value.

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


More information about the llvm-commits mailing list