[llvm] [InlineOrder] Fix assertion failure in CostBenefitPriority (PR #195564)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 12:56:35 PDT 2026


================
@@ -0,0 +1,11 @@
+; RUN: opt -passes='module-inline' -inline-priority-mode=cost-benefit -S < %s
----------------
kazutakahirata wrote:

I've updated the test with a comment:

```
; Test that getStaticBonusApplied() does not trigger an assertion failure
; when CostBenefitPriority encounters a non-variable InlineCost.
```

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


More information about the llvm-commits mailing list