File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -709,8 +709,9 @@ class InlineCostCallAnalyzer final : public CallAnalyzer {
709
709
// branch if it's reachable.
710
710
if (!DefaultDestUndefined)
711
711
addCost (2 * InstrCost);
712
+ // The jump table only requires a jump instruction.
712
713
int64_t JTCost =
713
- static_cast <int64_t >(JumpTableSize) * InstrCost + 4 * InstrCost;
714
+ static_cast <int64_t >(JumpTableSize) * InstrCost + InstrCost;
714
715
addCost (JTCost);
715
716
return ;
716
717
}
@@ -1157,7 +1158,7 @@ class InlineCostFeaturesAnalyzer final : public CallAnalyzer {
1157
1158
// FIXME: These constants are taken from the heuristic-based cost visitor.
1158
1159
// These should be removed entirely in a later revision to avoid reliance on
1159
1160
// heuristics in the ML inliner.
1160
- static constexpr int JTCostMultiplier = 4 ;
1161
+ static constexpr int JTCostMultiplier = 1 ;
1161
1162
static constexpr int CaseClusterCostMultiplier = 2 ;
1162
1163
static constexpr int SwitchDefaultDestCostMultiplier = 2 ;
1163
1164
static constexpr int SwitchCostMultiplier = 2 ;
You can’t perform that action at this time.
0 commit comments