[PATCH] D120461: [RISCV] Custom lower integer vector multify reduction

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 01:20:02 PST 2022


jacquesguan created this revision.
jacquesguan added reviewers: craig.topper, asb, luismarques, frasercrmck, HsiangKai, khchen, benshi001.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

Now, we will expand vecreduce_mul to several vector_shuffle and mul. But
it always computes with the whole vl which is not necessary. This patch
will use the active element as the vl to avoid redundant calculation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120461

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/CodeGen/RISCV/rvv/fixed-vectors-reduction-int.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120461.411035.patch
Type: text/x-patch
Size: 95135 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220224/49f03ff5/attachment-0001.bin>


More information about the llvm-commits mailing list