[llvm] [SampleFDO] Stale profile call-graph matching (PR #95135)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 12:09:50 PDT 2024
================
@@ -20,12 +20,32 @@ using namespace sampleprof;
#define DEBUG_TYPE "sample-profile-matcher"
+static cl::opt<bool> SalvageUnusedProfile(
+ "salvage-unused-profile", cl::Hidden, cl::init(false),
+ cl::desc(
+ "Salvage unused profile by matching new functions on call graph."));
+
+static cl::opt<unsigned> FuncProfileSimilarityThreshold(
+ "func-profile-similarity-threshold", cl::Hidden, cl::init(80),
+ cl::desc("The profile matches the function if their similarity is above "
+ "the given number(percentage)."));
----------------
WenleiHe wrote:
nit: reword the description: `Consider a profile matches a function if the similarity of their callee sequences is above the specified percentile.`
https://github.com/llvm/llvm-project/pull/95135
More information about the llvm-commits
mailing list