[PATCH] D157991: [RISCVInsertVSETVLI] Handle scalar extract (vmv.x.s, and vmx.f.s)
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 08:44:41 PDT 2023
reames created this revision.
reames added reviewers: craig.topper, luke, asb.
Herald added subscribers: VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, hiraditya, arichardson, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: wangpc, eopXD, MaskRay.
Herald added a project: LLVM.
vmv.x.s and vmv.f.s are unconditional. They read the low element of a vector register (not vector group), and function even when VL=0 or VSTART>0. As such, they are don't care with respect to both VL and LMUL. (And also policy, but that should already be handled generically.)
We apparently never added these. As can be seen in the test diffs, these mostly show up when exploding a vector into a set of scalars.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157991
Files:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-masked-scatter.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157991.550349.patch
Type: text/x-patch
Size: 9425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230815/4b5b1808/attachment.bin>
More information about the llvm-commits
mailing list