[llvm] [ctx_prof] Add Inlining support (PR #106154)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 3 13:37:32 PDT 2024
================
@@ -270,6 +271,17 @@ InlineResult InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
bool InsertLifetime = true,
Function *ForwardVarArgsTo = nullptr);
+/// Same as above, but it will update the contextual profile. If the contextual
+/// profile is invalid (i.e. not loaded because it is not present), it defaults
+/// to the behavior of the non-contextual profile updating variant above. This
+/// makes it easy to drop-in replace uses of the previous.
----------------
teresajohnson wrote:
Last sentence seems incomplete. "of the previous function" intended?
https://github.com/llvm/llvm-project/pull/106154
More information about the llvm-commits
mailing list