Skip to content

Commit ba150a4

Browse files
Move comment
1 parent 7814fce commit ba150a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 &&

0 commit comments

Comments
 (0)