[PATCH] D145495: [RISCV] Lower vector_{interleave,deinterleave} for NF > 2
Luke Lau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 05:35:39 PST 2023
luke created this revision.
luke added reviewers: craig.topper, reames, kito-cheng.
Herald added subscribers: asb, pmatos, VincentWu, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, 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.
For NF > we can't use the same tricks we use for the NF == 2 case, so
instead we're just generalizing the vrgather paths.
This also handles the re-concatenation of vectors a bit differently now,
as it's possible to get operands of a valid type but end up with a
result type that's invalid, e.g. nx2vi32 * 3 -> nx6vi32. Now we extend
the vector to the next power of two in the hopes that it's valid, e.g.
nxv8i32.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145495
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/vector-deinterleave.ll
llvm/test/CodeGen/RISCV/rvv/vector-interleave.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145495.503005.patch
Type: text/x-patch
Size: 28111 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230307/476d6ad6/attachment.bin>
More information about the llvm-commits
mailing list