[llvm] MemProf: Add minimum count threshold for inlining of promoted calls (PR #148001)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 12:50:21 PDT 2025


================
@@ -5573,6 +5579,9 @@ void MemProfContextDisambiguation::performICP(
                                  .getCallee());
         }
         DirectCall.setCalledFunction(TargetToUse);
+        if (MemProfICPNoInlineThreshold &&
----------------
snehasish wrote:

Maybe add a comment here to document why we need to do this?

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


More information about the llvm-commits mailing list