[llvm-branch-commits] [llvm] [llvm-profgen] Use always_inline/noinline attributes in pre-inliner (PR #234094)
Kunal Pathak via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 18 11:53:14 PST 2026
================
@@ -563,6 +563,8 @@ enum ContextAttributeMask {
ContextShouldBeInlined = 0x2, // Leaf of context should be inlined
ContextDuplicatedIntoBase =
0x4, // Leaf of context is duplicated into the base profile
+ ContextAlwaysInline = 0x8, // Function has always_inline attribute
----------------
kunalspathak wrote:
Do we want to preserve these bits in the profile? Seems they are only used in preinliner. Do you think reading it back in future will help in sample loader? If not, may be we can maintain a in-memory tracking for these and do not put it in profile? if such profile is fed back, they will be restored when when ` -preinliner-use-inline-attributes` is off.
https://github.com/llvm/llvm-project/pull/234094
More information about the llvm-branch-commits
mailing list