[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

Mircea Trofin via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 1 11:11:34 PDT 2024


================
@@ -319,6 +319,18 @@ static cl::opt<unsigned> PGOFunctionCriticalEdgeThreshold(
     cl::desc("Do not instrument functions with the number of critical edges "
              " greater than this threshold."));
 
+cl::opt<bool> InstrumentColdFunctionCoverage(
+    "instrument-cold-function-coverage", cl::init(false), cl::Hidden,
+    cl::desc("Enable cold function coverage instrumentation (currently only "
+             "used under sampling "
----------------
mtrofin wrote:

nit: here and below, the formatting looks odd. Perhaps re-join the doc string and re-run clang-format?

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


More information about the cfe-commits mailing list