[PATCH] D117467: [LegalizeTypes][VP] Add widening support for vp.reduce.*

Victor Perez via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 04:26:58 PST 2022


victor-eds created this revision.
Herald added subscribers: frasercrmck, rogfer01, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
victor-eds requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999, vkmr, MaskRay.
Herald added a project: LLVM.

When widening these intrinsics, we do not have to insert neutral
elements at the end of the vector as when widening vector.reduce.*
intrinsics, thanks to vector predication semantics.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117467

Files:
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.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: D117467.400492.patch
Type: text/x-patch
Size: 12259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220117/6878251b/attachment.bin>


More information about the llvm-commits mailing list