[PATCH] D117469: [LegalizeTypes][VP] Add splitting support for vp.reduction.*

Victor Perez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 05:47:56 PST 2022


victor-eds created this revision.
Herald added subscribers: 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.
victor-eds requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999, MaskRay.
Herald added a project: LLVM.

Split vp.reduction.* intrinsics by splitting the vector to reduce in
two halves, perform the reduction operation in each one of them and
accumulate the results of both operations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117469

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-fp-vp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int-vp.ll
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-mask-vp.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-mask-vp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117469.400500.patch
Type: text/x-patch
Size: 21231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220117/df3e1aad/attachment.bin>


More information about the llvm-commits mailing list