[PATCH] D152019: [RISCV][CostModel] Model vrgather.vv as being quadradic in LMUL

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 2 11:42:53 PDT 2023


reames created this revision.
reames added reviewers: craig.topper, asb, frasercrmck, luke, kito-cheng.
Herald added subscribers: jobnoorman, VincentWu, vkmr, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, 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.

vrgather.vv across multiple vector registers (i.e. LMUL > 1) requires all to all data movement.  Currently we model these as being linear in LMUL, which seems questionable.

Noticed via code inspection while looking at something else.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152019

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152019.527922.patch
Type: text/x-patch
Size: 17682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230602/ef419264/attachment.bin>


More information about the llvm-commits mailing list