File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12527,9 +12527,6 @@ SDValue DAGCombiner::visitPARTIAL_REDUCE_MLA(SDNode *N) {
1252712527 if (!ISD::isExtOpcode(LHSOpcode) || !ISD::isExtOpcode(RHSOpcode))
1252812528 return SDValue();
1252912529
12530- // For a 2-stage extend the signedness of both of the extends must be the
12531- // same. This is so the node can be folded into only a signed or unsigned
12532- // node.
1253312530 SDValue LHSExtOp = LHS->getOperand(0);
1253412531 SDValue RHSExtOp = RHS->getOperand(0);
1253512532 EVT LHSExtOpVT = LHSExtOp.getValueType();
@@ -12541,6 +12538,9 @@ SDValue DAGCombiner::visitPARTIAL_REDUCE_MLA(SDNode *N) {
1254112538
1254212539 bool ExtIsSigned = LHSOpcode == ISD::SIGN_EXTEND;
1254312540
12541+ // For a 2-stage extend the signedness of both of the extends must be the
12542+ // same. This is so the node can be folded into only a signed or unsigned
12543+ // node.
1254412544 bool NodeIsSigned = N->getOpcode() == ISD::PARTIAL_REDUCE_SMLA;
1254512545 EVT AccElemVT = Acc.getValueType().getVectorElementType();
1254612546 if (ExtIsSigned != NodeIsSigned &&
You can’t perform that action at this time.
0 commit comments