Skip to content

Commit 364835d

Browse files
committed
Re-implement explicit default assignment without reverting the memory footprint savings
1 parent 160ee34 commit 364835d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/CodeGen/TargetLowering.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,10 @@ class TargetLoweringBase {
16511651
auto AccI = AccSVT.SimpleTy;
16521652
auto InputI = InputSVT.SimpleTy;
16531653
PartialReduceActionTypes TypePair = std::make_pair(AccI, InputI);
1654-
return PartialReduceMLAActions.lookup(TypePair);
1654+
auto It = PartialReduceMLAActions.find(TypePair);
1655+
if (It != PartialReduceMLAActions.end())
1656+
return It->second;
1657+
return Expand;
16551658
}
16561659

16571660
/// Return true if a PARTIAL_REDUCE_U/SMLA node with the specified types is

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,6 @@ void TargetLoweringBase::initActions() {
835835
setOperationAction(ISD::GET_FPENV, VT, Expand);
836836
setOperationAction(ISD::SET_FPENV, VT, Expand);
837837
setOperationAction(ISD::RESET_FPENV, VT, Expand);
838-
839-
for (MVT InputVT : MVT::all_valuetypes())
840-
setPartialReduceMLAAction(VT, InputVT, Expand);
841838
}
842839

843840
// Most targets ignore the @llvm.prefetch intrinsic.

0 commit comments

Comments
 (0)