[PATCH] D155929: [RISCV] Use the first element of source as the start value of reduction.
Yeting Kuo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 22 21:37:20 PDT 2023
fakepaper56 updated this revision to Diff 543245.
fakepaper56 added a comment.
This update does 3 things:
1. Since `(extractelement fixed_vec, 0)` may be a start of vp.reduce, we need to
handle this for `lowerScalarInsert`.
2. Remove function getFirstElement().
3. Add test CodeGen/RISCV/rvv/combine-extractelement-vp-reduce.ll for 1.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155929/new/
https://reviews.llvm.org/D155929
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/double_reduct.ll
llvm/test/CodeGen/RISCV/rvv/combine-extractelement-vp-reduce.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/fold-binary-reduce.ll
llvm/test/CodeGen/RISCV/rvv/vreductions-fp-sdnode.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: D155929.543245.patch
Type: text/x-patch
Size: 206237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230723/a0fae87e/attachment-0001.bin>
More information about the llvm-commits
mailing list