[llvm] [Inliner] Don't apply the cold-callsite threshold in non-callable functions (PR #211255)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 06:52:04 PDT 2026


================
@@ -2151,7 +2151,13 @@ void InlineCostCallAnalyzer::updateThreshold(CallBase &Call, Function &Callee) {
       // behavior to prevent inlining of hot callsites during ThinLTO
       // compile phase.
       Threshold = *HotCallSiteThreshold;
-    } else if (isColdCallSite(Call, CallerBFI)) {
+    } else if (isColdCallSite(Call, CallerBFI) &&
+               isCallableCC(Caller->getCallingConv())) {
----------------
arsenm wrote:

Not applied, can you apply this and do whatever clang-format does with it 

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


More information about the llvm-commits mailing list