[clang] [llvm] [clang][Inliner] Add opt-in inliner hints for lambdas and main-file functions (PR #228074)

Nathan Corbyn via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 1 06:43:56 PDT 2026


================
@@ -2104,12 +2135,14 @@ void InlineCostCallAnalyzer::updateThreshold(CallBase &Call, Function &Callee) {
   int SingleBBBonusPercent = 50;
   int VectorBonusPercent = TTI.getInlinerVectorBonusPercent();
   int LastCallToStaticBonus = TTI.getInliningLastCallToStaticBonus();
+  bool ClangHintBonusAllowed = true;
----------------
cofibrant wrote:

Does this want to be a scalable bonus percent like the others? 

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


More information about the llvm-commits mailing list