@@ -3294,25 +3294,25 @@ static SDValue lowerVectorXRINT(SDValue Op, SelectionDAG &DAG,
32943294
32953295static SDValue
32963296getVSlidedown(SelectionDAG &DAG, const RISCVSubtarget &Subtarget,
3297- const SDLoc &DL, EVT VT, SDValue Merge , SDValue Op,
3297+ const SDLoc &DL, EVT VT, SDValue Passthru , SDValue Op,
32983298 SDValue Offset, SDValue Mask, SDValue VL,
32993299 unsigned Policy = RISCVII::TAIL_UNDISTURBED_MASK_UNDISTURBED) {
3300- if (Merge .isUndef())
3300+ if (Passthru .isUndef())
33013301 Policy = RISCVII::TAIL_AGNOSTIC | RISCVII::MASK_AGNOSTIC;
33023302 SDValue PolicyOp = DAG.getTargetConstant(Policy, DL, Subtarget.getXLenVT());
3303- SDValue Ops[] = {Merge , Op, Offset, Mask, VL, PolicyOp};
3303+ SDValue Ops[] = {Passthru , Op, Offset, Mask, VL, PolicyOp};
33043304 return DAG.getNode(RISCVISD::VSLIDEDOWN_VL, DL, VT, Ops);
33053305}
33063306
33073307static SDValue
33083308getVSlideup(SelectionDAG &DAG, const RISCVSubtarget &Subtarget, const SDLoc &DL,
3309- EVT VT, SDValue Merge , SDValue Op, SDValue Offset, SDValue Mask,
3309+ EVT VT, SDValue Passthru , SDValue Op, SDValue Offset, SDValue Mask,
33103310 SDValue VL,
33113311 unsigned Policy = RISCVII::TAIL_UNDISTURBED_MASK_UNDISTURBED) {
3312- if (Merge .isUndef())
3312+ if (Passthru .isUndef())
33133313 Policy = RISCVII::TAIL_AGNOSTIC | RISCVII::MASK_AGNOSTIC;
33143314 SDValue PolicyOp = DAG.getTargetConstant(Policy, DL, Subtarget.getXLenVT());
3315- SDValue Ops[] = {Merge , Op, Offset, Mask, VL, PolicyOp};
3315+ SDValue Ops[] = {Passthru , Op, Offset, Mask, VL, PolicyOp};
33163316 return DAG.getNode(RISCVISD::VSLIDEUP_VL, DL, VT, Ops);
33173317}
33183318
@@ -6086,8 +6086,8 @@ static unsigned getRISCVVLOp(SDValue Op) {
60866086#undef VP_CASE
60876087}
60886088
6089- /// Return true if a RISC-V target specified op has a merge operand.
6090- static bool hasMergeOp (unsigned Opcode) {
6089+ /// Return true if a RISC-V target specified op has a passthru operand.
6090+ static bool hasPassthruOp (unsigned Opcode) {
60916091 assert(Opcode > RISCVISD::FIRST_NUMBER &&
60926092 Opcode <= RISCVISD::LAST_RISCV_STRICTFP_OPCODE &&
60936093 "not a RISC-V target specific op");
@@ -10953,7 +10953,7 @@ SDValue RISCVTargetLowering::lowerVectorStrictFSetcc(SDValue Op,
1095310953 True, VL});
1095410954 Mask =
1095510955 DAG.getNode(RISCVISD::VMAND_VL, DL, MaskVT, OrderMask1, OrderMask2, VL);
10956- // Use Mask as the merge operand to let the result be 0 if either of the
10956+ // Use Mask as the passthru operand to let the result be 0 if either of the
1095710957 // inputs is unordered.
1095810958 Res = DAG.getNode(RISCVISD::STRICT_FSETCCS_VL, DL,
1095910959 DAG.getVTList(MaskVT, MVT::Other),
@@ -11058,7 +11058,7 @@ SDValue RISCVTargetLowering::lowerFixedLengthVectorSelectToRVV(
1105811058SDValue RISCVTargetLowering::lowerToScalableOp(SDValue Op,
1105911059 SelectionDAG &DAG) const {
1106011060 unsigned NewOpc = getRISCVVLOp(Op);
11061- bool HasMergeOp = hasMergeOp (NewOpc);
11061+ bool HasPassthruOp = hasPassthruOp (NewOpc);
1106211062 bool HasMask = hasMaskOp(NewOpc);
1106311063
1106411064 MVT VT = Op.getSimpleValueType();
@@ -11083,7 +11083,7 @@ SDValue RISCVTargetLowering::lowerToScalableOp(SDValue Op,
1108311083
1108411084 SDLoc DL(Op);
1108511085 auto [Mask, VL] = getDefaultVLOps(VT, ContainerVT, DL, DAG, Subtarget);
11086- if (HasMergeOp )
11086+ if (HasPassthruOp )
1108711087 Ops.push_back(DAG.getUNDEF(ContainerVT));
1108811088 if (HasMask)
1108911089 Ops.push_back(Mask);
@@ -11111,7 +11111,7 @@ SDValue RISCVTargetLowering::lowerToScalableOp(SDValue Op,
1111111111// types.
1111211112SDValue RISCVTargetLowering::lowerVPOp(SDValue Op, SelectionDAG &DAG) const {
1111311113 unsigned RISCVISDOpc = getRISCVVLOp(Op);
11114- bool HasMergeOp = hasMergeOp (RISCVISDOpc);
11114+ bool HasPassthruOp = hasPassthruOp (RISCVISDOpc);
1111511115
1111611116 SDLoc DL(Op);
1111711117 MVT VT = Op.getSimpleValueType();
@@ -11124,9 +11124,9 @@ SDValue RISCVTargetLowering::lowerVPOp(SDValue Op, SelectionDAG &DAG) const {
1112411124 for (const auto &OpIdx : enumerate(Op->ops())) {
1112511125 SDValue V = OpIdx.value();
1112611126 assert(!isa<VTSDNode>(V) && "Unexpected VTSDNode node!");
11127- // Add dummy merge value before the mask. Or if there isn't a mask, before
11128- // EVL.
11129- if (HasMergeOp ) {
11127+ // Add dummy passthru value before the mask. Or if there isn't a mask,
11128+ // before EVL.
11129+ if (HasPassthruOp ) {
1113011130 auto MaskIdx = ISD::getVPMaskIdx(Op.getOpcode());
1113111131 if (MaskIdx) {
1113211132 if (*MaskIdx == OpIdx.index())
@@ -14658,25 +14658,25 @@ struct CombineResult {
1465814658 /// The actual replacement is *not* done in that method.
1465914659 SDValue materialize(SelectionDAG &DAG,
1466014660 const RISCVSubtarget &Subtarget) const {
14661- SDValue Mask, VL, Merge ;
14661+ SDValue Mask, VL, Passthru ;
1466214662 std::tie(Mask, VL) =
1466314663 NodeExtensionHelper::getMaskAndVL(Root, DAG, Subtarget);
1466414664 switch (Root->getOpcode()) {
1466514665 default:
14666- Merge = Root->getOperand(2);
14666+ Passthru = Root->getOperand(2);
1466714667 break;
1466814668 case ISD::ADD:
1466914669 case ISD::SUB:
1467014670 case ISD::MUL:
1467114671 case ISD::OR:
1467214672 case ISD::SHL:
14673- Merge = DAG.getUNDEF(Root->getValueType(0));
14673+ Passthru = DAG.getUNDEF(Root->getValueType(0));
1467414674 break;
1467514675 }
1467614676 return DAG.getNode(TargetOpcode, SDLoc(Root), Root->getValueType(0),
1467714677 LHS.getOrCreateExtendedOp(Root, DAG, Subtarget, LHSExt),
1467814678 RHS.getOrCreateExtendedOp(Root, DAG, Subtarget, RHSExt),
14679- Merge , Mask, VL);
14679+ Passthru , Mask, VL);
1468014680 }
1468114681};
1468214682
@@ -16159,8 +16159,8 @@ static SDValue combineToVWMACC(SDNode *N, SelectionDAG &DAG,
1615916159 SDValue MulOp = N->getOperand(1);
1616016160
1616116161 if (N->getOpcode() == RISCVISD::ADD_VL) {
16162- SDValue AddMergeOp = N->getOperand(2);
16163- if (!AddMergeOp .isUndef())
16162+ SDValue AddPassthruOp = N->getOperand(2);
16163+ if (!AddPassthruOp .isUndef())
1616416164 return SDValue();
1616516165 }
1616616166
@@ -16181,9 +16181,9 @@ static SDValue combineToVWMACC(SDNode *N, SelectionDAG &DAG,
1618116181 if (!IsVWMulOpc(MulOp.getOpcode()))
1618216182 return SDValue();
1618316183
16184- SDValue MulMergeOp = MulOp.getOperand(2);
16184+ SDValue MulPassthruOp = MulOp.getOperand(2);
1618516185
16186- if (!MulMergeOp .isUndef())
16186+ if (!MulPassthruOp .isUndef())
1618716187 return SDValue();
1618816188
1618916189 auto [AddMask, AddVL] = [](SDNode *N, SelectionDAG &DAG,
0 commit comments