[PATCH] D137530: [RISCV] Splat scalar to be of length VL instead of 1 for reductions
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 13 19:19:59 PST 2022
pcwang-thead updated this revision to Diff 475042.
pcwang-thead added a comment.
For VP reductions, we can do this iff we can prove AVL is non-zero.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137530/new/
https://reviews.llvm.org/D137530
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int.ll
llvm/test/CodeGen/RISCV/rvv/fold-binary-reduce.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-fp-sdnode.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-int.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137530.475042.patch
Type: text/x-patch
Size: 117425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221114/267f2d4c/attachment-0001.bin>
More information about the llvm-commits
mailing list