[llvm] [AArch64][SVE] Add AArch64ISD nodes for wide add instructions (PR #115895)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 02:46:17 PST 2024
================
@@ -21825,17 +21829,10 @@ SDValue tryLowerPartialReductionToWideAdd(SDNode *N,
return SDValue();
bool InputIsSigned = ExtInputOpcode == ISD::SIGN_EXTEND;
- auto BottomIntrinsic = InputIsSigned ? Intrinsic::aarch64_sve_saddwb
- : Intrinsic::aarch64_sve_uaddwb;
- auto TopIntrinsic = InputIsSigned ? Intrinsic::aarch64_sve_saddwt
- : Intrinsic::aarch64_sve_uaddwt;
-
- auto BottomID = DAG.getTargetConstant(BottomIntrinsic, DL, AccElemVT);
- auto BottomNode =
- DAG.getNode(ISD::INTRINSIC_WO_CHAIN, DL, AccVT, BottomID, Acc, Input);
- auto TopID = DAG.getTargetConstant(TopIntrinsic, DL, AccElemVT);
- return DAG.getNode(ISD::INTRINSIC_WO_CHAIN, DL, AccVT, TopID, BottomNode,
- Input);
+ auto BottomISD = InputIsSigned ? AArch64ISD::SADDWB : AArch64ISD::UADDWB;
----------------
paulwalker-arm wrote:
Feel free to ignore me but we typically refer to the ISD enum as an Opcode.
https://github.com/llvm/llvm-project/pull/115895
More information about the llvm-commits
mailing list