[llvm] [PGO] Sampled instrumentation in PGO to speed up instrumentation binary (PR #69535)

David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 10:58:57 PDT 2024


================
@@ -170,6 +170,29 @@ cl::opt<bool> SkipRetExitBlock(
     "skip-ret-exit-block", cl::init(true),
     cl::desc("Suppress counter promotion if exit blocks contain ret."));
 
+static cl::opt<bool> SampledInstr("sampled-instr", cl::ZeroOrMore,
----------------
david-xl wrote:

'instr' can be confused with 'instruction'. We should just spell it out as 'sampled-instrumentation'. 

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


More information about the llvm-commits mailing list