[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


================
@@ -5448,6 +5540,8 @@ bool MemProfContextDisambiguation::applyImport(Module &M) {
       // below.
       auto CalleeOrigName = CalledFunction->getName();
       for (unsigned J = 0; J < StackNode.Clones.size(); J++) {
+        if (J > 0 && VMaps[J - 1]->empty())
+          continue;
----------------
teresajohnson wrote:

done

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


More information about the llvm-commits mailing list