[RISCV] Use unordered indexed loads for MGATHER.

I don't think the semantics of the llvm masked gather intrinsic care
about the order the elements are loaded. For example, type legalization
by splitting will chain them in parallel. This is different than
scatter which we do chain in order.

Reviewed By: frasercrmck

Differential Revision: https://reviews.llvm.org/D106025
This commit is contained in:
Craig Topper 2021-07-20 08:32:15 -07:00
parent 4272e64acd
commit 84877a098a
3 changed files with 379 additions and 379 deletions

View File

@ -4541,7 +4541,7 @@ SDValue RISCVTargetLowering::lowerMGATHER(SDValue Op, SelectionDAG &DAG) const {
VL = DAG.getRegister(RISCV::X0, XLenVT);
unsigned IntID =
IsUnmasked ? Intrinsic::riscv_vloxei : Intrinsic::riscv_vloxei_mask;
IsUnmasked ? Intrinsic::riscv_vluxei : Intrinsic::riscv_vluxei_mask;
SmallVector<SDValue, 8> Ops{MGN->getChain(),
DAG.getTargetConstant(IntID, DL, XLenVT)};
if (!IsUnmasked)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff