[PATCH] D119921: [RISCV] Teach VSETVLInsert to optimize vsetvli for ScalarMoveInstr
Chenbing.Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 16 00:44:25 PST 2022
Chenbing.Zheng created this revision.
Chenbing.Zheng added reviewers: craig.topper, frasercrmck, asb, jacquesguan, benshi001.
Chenbing.Zheng added a project: LLVM.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, kristof.beyls.
Chenbing.Zheng requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
VSETVLI from ScalarMove don't care LMUL and non-zero AVL.
So we can use next VSETVLI to instead previous VSETVLI form ScalarMove ,
if they only have different LMUL or non-zero AVL.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119921
Files:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-buildvec.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int-shuffles.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-mask-buildvec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119921.409162.patch
Type: text/x-patch
Size: 11700 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220216/4f338ab7/attachment.bin>
More information about the llvm-commits
mailing list