[llvm] [llvm-profgen] Improve sample profile density (PR #92144)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 22:30:52 PDT 2024


================
@@ -83,6 +83,10 @@ static cl::opt<double> HotFunctionDensityThreshold(
 static cl::opt<bool> ShowDensity("show-density", llvm::cl::init(false),
                                  llvm::cl::desc("show profile density details"),
                                  llvm::cl::Optional);
+static cl::opt<int> ProfileDensityHotFuncCutOff(
+    "profile-density-hot-func-cutoff", llvm::cl::init(990000),
----------------
WenleiHe wrote:

Do we need a new switch? Should we use `ProfileSummaryCutoffHot` instead given they are the same value? 

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


More information about the llvm-commits mailing list