[llvm] [RISCV] Lower unmasked zero-stride vp.stride to a splat of one scalar load. (PR #97394)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 05:44:03 PDT 2024


lukel97 wrote:

As an aside, as I understand the `riscv_masked_strided_{load,store}` intrinsics are mainly used for RISCVGatherScatterLowering. I wonder if it would be worthwhile to teach RISCVGatherScatterLowering to emit `llvm.experimental.vp.strided.{load,store}` instead so we could remove the riscv_masked_strided intrinsics.

>From a quick look, we'd could emulate the passthru via llvm.vp.merge. But we also need to set the EVL to VLMAX somehow.

https://github.com/llvm/llvm-project/pull/97394


More information about the llvm-commits mailing list