[PATCH] D145155: [RISCV] Enable interleaved access vectorization

Luke Lau via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 04:35:55 PST 2023


luke created this revision.
luke added reviewers: craig.topper, reames, mgabka, luke957, rogfer01, frasercrmck, kito-cheng.
Herald added subscribers: asb, pmatos, VincentWu, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
luke requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

The loop vectorizer supports generating interleaved loads and stores via
shuffle patterns for fixed length vectors.
This enables it for RISC-V, since interleaved shuffle patterns can be
lowered to vlseg/vsseg in https://reviews.llvm.org/D145022


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D145155

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
  llvm/test/Transforms/LoopVectorize/RISCV/interleaved-accesses-expensive.ll
  llvm/test/Transforms/LoopVectorize/RISCV/interleaved-accesses.ll
  llvm/test/Transforms/LoopVectorize/RISCV/zvl32b.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145155.501831.patch
Type: text/x-patch
Size: 42573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230302/112ca816/attachment.bin>


More information about the llvm-commits mailing list