[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


================
@@ -57,6 +61,16 @@ static cl::opt<int> CSPreinlMultiplierForPrevInl(
     cl::desc(
         "Multiplier to bump up callsite threshold for previous inlining."));
 
+static cl::opt<bool> CSPreinlUseInlineAttributes(
+    "preinliner-use-inline-attributes", cl::Hidden, cl::init(true),
+    cl::desc("Honor always_inline/noinline attributes from pseudo probe "
+             "descriptors in the CS pre-inliner."));
+
+static cl::opt<bool> ChargeAlwaysInlineSize(
----------------
kunalspathak wrote:

Is there a use case to add this flag? Will it be used in prod to change something? Does it have to be used in combination of `preinliner-use-inline-attributes`? Like will it work as intended if `preinliner-use-inline-attributes=false`?

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


More information about the llvm-branch-commits mailing list