File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -701,8 +701,8 @@ class InlineCostCallAnalyzer final : public CallAnalyzer {
701
701
702
702
void onFinalizeSwitch (unsigned JumpTableSize, unsigned NumCaseCluster,
703
703
bool DefaultDestUndefined) override {
704
- if (!DefaultDestUndefined)
705
- addCost (2 * InstrCost);
704
+ // if (!DefaultDestUndefined)
705
+ // addCost(2 * InstrCost);
706
706
// If suitable for a jump table, consider the cost for the table size and
707
707
// branch to destination.
708
708
// Maximum valid cost increased in this function.
@@ -1235,9 +1235,9 @@ class InlineCostFeaturesAnalyzer final : public CallAnalyzer {
1235
1235
1236
1236
void onFinalizeSwitch (unsigned JumpTableSize, unsigned NumCaseCluster,
1237
1237
bool DefaultDestUndefined) override {
1238
- if (!DefaultDestUndefined)
1239
- increment (InlineCostFeatureIndex::switch_default_dest_penalty,
1240
- SwitchDefaultDestCostMultiplier * InstrCost);
1238
+ // if (!DefaultDestUndefined)
1239
+ // increment(InlineCostFeatureIndex::switch_default_dest_penalty,
1240
+ // SwitchDefaultDestCostMultiplier * InstrCost);
1241
1241
1242
1242
if (JumpTableSize) {
1243
1243
int64_t JTCost = static_cast <int64_t >(JumpTableSize) * InstrCost +
You can’t perform that action at this time.
0 commit comments