@@ -1650,10 +1650,8 @@ class TargetLoweringBase {
1650
1650
" getPartialReduceMLAAction types aren't valid" );
1651
1651
auto AccI = AccSVT.SimpleTy ;
1652
1652
auto InputI = InputSVT.SimpleTy ;
1653
- PartialReduceActionTypes TypeHash = std::make_pair (AccI, InputI);
1654
- if (PartialReduceMLAActions.contains (TypeHash))
1655
- return PartialReduceMLAActions.at (TypeHash);
1656
- return Expand;
1653
+ PartialReduceActionTypes TypePair = std::make_pair (AccI, InputI);
1654
+ return PartialReduceMLAActions.lookup (TypePair);
1657
1655
}
1658
1656
1659
1657
// / Return true if a PARTIAL_REDUCE_U/SMLA node with the specified types is
@@ -2746,8 +2744,8 @@ class TargetLoweringBase {
2746
2744
" setPartialReduceMLAAction types aren't valid" );
2747
2745
auto AccI = AccVT.SimpleTy ;
2748
2746
auto InputI = InputVT.SimpleTy ;
2749
- PartialReduceActionTypes TypeHash = std::make_pair (AccI, InputI);
2750
- PartialReduceMLAActions[TypeHash ] = Action;
2747
+ PartialReduceActionTypes TypePair = std::make_pair (AccI, InputI);
2748
+ PartialReduceMLAActions[TypePair ] = Action;
2751
2749
}
2752
2750
2753
2751
// / If Opc/OrigVT is specified as being promoted, the promotion code defaults
@@ -3701,8 +3699,6 @@ class TargetLoweringBase {
3701
3699
// / For each result type and input type for the ISD::PARTIAL_REDUCE_U/SMLA
3702
3700
// / nodes, keep a LegalizeAction which indicates how instruction selection
3703
3701
// / should deal with this operation.
3704
- // / If no entry exists for a given key, Expand is assumed as this
3705
- // / is the most common action.
3706
3702
DenseMap<PartialReduceActionTypes, LegalizeAction> PartialReduceMLAActions;
3707
3703
3708
3704
ValueTypeActionImpl ValueTypeActions;
0 commit comments