[PATCH] D125002: [SelectionDAG] Support more VP reduction mask operation.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 04:23:02 PDT 2022


jacquesguan created this revision.
jacquesguan added reviewers: craig.topper, frasercrmck, benshi001, Jimerlife.
Herald added subscribers: StephenFan, ecnelises, 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.
Herald added a project: All.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.
Herald added a project: LLVM.

This patch uses VP_REDUCE_AND and VP_REDUCE_OR to replace VP_REDUCE_SMAX,VP_REDUCE_SMIN,VP_REDUCE_UMAX and VP_REDUCE_UMIN for mask vector type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125002

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-mask-vp.ll
  llvm/test/CodeGen/RISCV/rvv/vreductions-mask-vp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125002.427271.patch
Type: text/x-patch
Size: 38512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220505/b7003445/attachment.bin>


More information about the llvm-commits mailing list