Skip to content

Commit d40773d

Browse files
committed
Adjust how usdot cases are lowered
1 parent 7868964 commit d40773d

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -925,18 +925,8 @@ SDValue DAGTypeLegalizer::CreateStackStoreLoad(SDValue Op,
925925
bool DAGTypeLegalizer::CustomLowerNode(SDNode *N, EVT VT, bool LegalizeResult) {
926926
// See if the target wants to custom lower this node.
927927
unsigned Opcode = N->getOpcode();
928-
bool IsPRMLAOpcode =
929-
Opcode == ISD::PARTIAL_REDUCE_UMLA || Opcode == ISD::PARTIAL_REDUCE_SMLA;
930-
931-
if (IsPRMLAOpcode) {
932-
if (TLI.getPartialReduceMLAAction(N->getValueType(0),
933-
N->getOperand(1).getValueType()) !=
934-
TargetLowering::Custom)
935-
return false;
936-
} else {
937-
if (TLI.getOperationAction(Opcode, VT) != TargetLowering::Custom)
938-
return false;
939-
}
928+
if (TLI.getOperationAction(Opcode, VT) != TargetLowering::Custom)
929+
return false;
940930

941931
SmallVector<SDValue, 8> Results;
942932
if (LegalizeResult)
@@ -957,7 +947,6 @@ bool DAGTypeLegalizer::CustomLowerNode(SDNode *N, EVT VT, bool LegalizeResult) {
957947
return true;
958948
}
959949

960-
961950
/// Widen the node's results with custom code provided by the target and return
962951
/// "true", or do nothing and return "false".
963952
bool DAGTypeLegalizer::CustomWidenLowerNode(SDNode *N, EVT VT) {

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,8 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
18801880
setPartialReduceMLAAction(MVT::nxv4i32, MVT::nxv8i32, Custom);
18811881
setPartialReduceMLAAction(MVT::nxv8i16, MVT::nxv16i16, Custom);
18821882
setPartialReduceMLAAction(MVT::nxv16i8, MVT::nxv32i8, Custom);
1883+
1884+
setOperationAction(ISD::PARTIAL_REDUCE_UMLA, MVT::nxv16i32, Custom);
18831885
}
18841886
}
18851887

0 commit comments

Comments
 (0)