[llvm] [StaleProfileMatching] Use only profile anchor size for similarity calculation (PR #126783)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 00:04:28 PST 2025


================
@@ -23,7 +23,7 @@ using namespace sampleprof;
 #define DEBUG_TYPE "sample-profile-matcher"
 
 static cl::opt<unsigned> FuncProfileSimilarityThreshold(
-    "func-profile-similarity-threshold", cl::Hidden, cl::init(80),
+    "func-profile-similarity-threshold", cl::Hidden, cl::init(70),
----------------
WenleiHe wrote:

Is 10% drop meaningful, is 70% final? If so, it's okay to include it here, otherwise the tuning can be done separately. 

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


More information about the llvm-commits mailing list