[llvm] [RISCV] Emit VP strided load in mgather combine. NFCI (PR #98112)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 23:23:45 PDT 2024
================
@@ -17060,15 +17060,16 @@ SDValue RISCVTargetLowering::PerformDAGCombine(SDNode *N,
SDValue BasePtr = DAG.getNode(ISD::ADD, DL, PtrVT, MGN->getBasePtr(),
DAG.getConstant(Addend, DL, PtrVT));
- SDVTList VTs = DAG.getVTList({VT, MVT::Other});
- SDValue IntID =
- DAG.getTargetConstant(Intrinsic::riscv_masked_strided_load, DL,
- XLenVT);
- SDValue Ops[] =
- {MGN->getChain(), IntID, MGN->getPassThru(), BasePtr,
- DAG.getConstant(StepNumerator, DL, XLenVT), MGN->getMask()};
- return DAG.getMemIntrinsicNode(ISD::INTRINSIC_W_CHAIN, DL, VTs,
- Ops, VT, MGN->getMemOperand());
+ SDValue EVL = DAG.getElementCount(DL, Subtarget.getXLenVT(),
----------------
lukel97 wrote:
I think it should always be a fixed vector since it comes from BUILD_VECTOR
https://github.com/llvm/llvm-project/pull/98112
More information about the llvm-commits
mailing list