[PATCH] D130895: Make VL choosing for a splat constant based on its users
Anton Sidorenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 1 05:35:42 PDT 2022
asi-sc created this revision.
Herald added subscribers: luke957, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
asi-sc requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.
When translating splat constants to VMV, X0 is used as default VL.
It may cause redundant changing of AVL to VLMAX even if it could be
smaller. For optimal VL we can use common VL of splat users if it
exists.
PR#55615
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130895
Files:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/test/CodeGen/RISCV/rvv/pr55615.ll
llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130895.448999.patch
Type: text/x-patch
Size: 8815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220801/47caf098/attachment.bin>
More information about the llvm-commits
mailing list