[llvm] [MemProf] Suppress duplicate clones in the LTO backend (PR #161551)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 3 15:53:43 PDT 2025
================
@@ -5186,19 +5191,129 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::assignFunctions() {
return Changed;
}
+// Compute a SHA1 hash of the callsite and alloc version information of clone I
+// in the summary, to use in detection of duplicate clones.
+std::string ComputeHash(StringMap<Function *> &HashToFunc, FunctionSummary *FS,
----------------
teresajohnson wrote:
Good idea on return type! done
https://github.com/llvm/llvm-project/pull/161551
More information about the llvm-commits
mailing list