[llvm] [PGO][profcheck] ignore explicitly cold functions (PR #151778)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 2 08:19:06 PDT 2025


================
@@ -20,8 +20,12 @@
 #include "llvm/IR/MDBuilder.h"
 #include "llvm/IR/ProfDataUtils.h"
 #include "llvm/Support/BranchProbability.h"
+#include "llvm/Support/CommandLine.h"
 
 using namespace llvm;
+static cl::opt<int64_t>
+    DefaultFunctionEntryCount("profcheck-default-fct-entry-count",
----------------
snehasish wrote:

nit: Spell out function? It seems strange to only choose to drop characters from one word in the option name.

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


More information about the llvm-commits mailing list