[PATCH] D139039: [RISCV] Incorporate LMUL into costs for arithmetic and shuffles

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 30 12:03:03 PST 2022


reames created this revision.
reames added reviewers: craig.topper, asb, frasercrmck, arcbbb.
Herald added subscribers: sunshaoce, VincentWu, StephenFan, vkmr, 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, bollu, simoncook, johnrusso, rbar, hiraditya, arichardson, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This reuses the routine implemented in 0e6f0b7 <https://reviews.llvm.org/rG0e6f0b7cc38391f3365a862266a8aef50d093135> to implement several existing TODOs.  Many of the operations scale linearly with LMUL; this change represents that in the cost model.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139039

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/RISCV/active_lane_mask.ll
  llvm/test/Analysis/CostModel/RISCV/arith-fp.ll
  llvm/test/Analysis/CostModel/RISCV/arith-int.ll
  llvm/test/Analysis/CostModel/RISCV/rvv-intrinsics.ll
  llvm/test/Analysis/CostModel/RISCV/rvv-shuffle.ll
  llvm/test/Analysis/CostModel/RISCV/splice.ll
  llvm/test/Transforms/LoopVectorize/RISCV/riscv-vector-reverse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139039.479044.patch
Type: text/x-patch
Size: 82984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221130/2729b15e/attachment.bin>


More information about the llvm-commits mailing list