[PATCH] D139747: [RISCV] Allow fractional LMUL for reduction start value
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 9 16:09:10 PST 2022
reames created this revision.
reames added reviewers: craig.topper, frasercrmck, asb, kito-cheng, pcwang-thead.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, hiraditya, arichardson, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: eopXD, MaskRay.
Herald added a project: LLVM.
For reductions, we need to put the start value into a source vector. For fractional LMULs, we can perform the operation at the original LMUL.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139747
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp-vp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int-vp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-fp-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-fp-vp.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-int-vp.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-int.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139747.481774.patch
Type: text/x-patch
Size: 93109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221210/2786e9d1/attachment.bin>
More information about the llvm-commits
mailing list