[PATCH] D137276: [RISCV] Add cost model for fixed broadcast shuffle

ShihPo Hung via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 11:19:30 PDT 2022


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

This patch adds basic broadcast shuffle costs in order to enable SLP vectorization.
And adds `getLMULCost` to consider reciprocal throughput for different LMUL.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137276

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
  llvm/test/Analysis/CostModel/RISCV/fixed-shuffle-broadcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137276.472705.patch
Type: text/x-patch
Size: 15356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221102/735f1d06/attachment.bin>


More information about the llvm-commits mailing list