[llvm] [llvm-profgen] Improve sample profile density (PR #92144)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed May 22 13:39:40 PDT 2024
    
    
  
================
@@ -75,14 +75,19 @@ static cl::opt<int, true> CSProfMaxContextDepth(
              "depth limit."),
     cl::location(llvm::sampleprof::CSProfileGenerator::MaxContextDepth));
 
-static cl::opt<double> HotFunctionDensityThreshold(
-    "hot-function-density-threshold", llvm::cl::init(1000),
+static cl::opt<double> ProfileDensityThreshold(
+    "profile-density-threshold", llvm::cl::init(20),
     llvm::cl::desc(
-        "specify density threshold for hot functions (default: 1000)"),
+        "Set the profile density threshold(default: 20), which is used to "
----------------
WenleiHe wrote:
nit: remove "Set" verb, which is obviously for any flags. the need to describe what is "profile-density-threshold". Maybe remove "(defalt: xx)" as well. 
https://github.com/llvm/llvm-project/pull/92144
    
    
More information about the llvm-commits
mailing list