Skip to content

Commit 6108e7a

Browse files
committed
Address nits
1 parent df2affe commit 6108e7a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,10 +1650,8 @@ class TargetLoweringBase {
16501650
"getPartialReduceMLAAction types aren't valid");
16511651
auto AccI = AccSVT.SimpleTy;
16521652
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);
16571655
}
16581656

16591657
/// Return true if a PARTIAL_REDUCE_U/SMLA node with the specified types is
@@ -2746,8 +2744,8 @@ class TargetLoweringBase {
27462744
"setPartialReduceMLAAction types aren't valid");
27472745
auto AccI = AccVT.SimpleTy;
27482746
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;
27512749
}
27522750

27532751
/// If Opc/OrigVT is specified as being promoted, the promotion code defaults
@@ -3701,8 +3699,6 @@ class TargetLoweringBase {
37013699
/// For each result type and input type for the ISD::PARTIAL_REDUCE_U/SMLA
37023700
/// nodes, keep a LegalizeAction which indicates how instruction selection
37033701
/// 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.
37063702
DenseMap<PartialReduceActionTypes, LegalizeAction> PartialReduceMLAActions;
37073703

37083704
ValueTypeActionImpl ValueTypeActions;

0 commit comments

Comments
 (0)