[llvm] [InlineCost] Consider the default branch when calculating cost (PR #77856)
Quentin Dian via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 21:34:08 PST 2024
================
@@ -1153,6 +1154,7 @@ class InlineCostFeaturesAnalyzer final : public CallAnalyzer {
// heuristics in the ML inliner.
static constexpr int JTCostMultiplier = 4;
static constexpr int CaseClusterCostMultiplier = 2;
+ static constexpr int SwitchDefaultDestCostMultiplier = 2;
----------------
DianQK wrote:
I just copied it from `CaseClusterCostMultiplier`.
https://github.com/llvm/llvm-project/pull/77856
More information about the llvm-commits
mailing list