[PATCH] D134746: [RISCV] Adjust vector immediate store materialization cost

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 08:52:37 PDT 2022


reames created this revision.
reames added reviewers: craig.topper, asb, frasercrmck.
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 change updates the costs to make constant pool loads match their actual cost, and adds the broadcast special case to avoid too many regressions.  We really need more information about the constants being rematerialized, but this is an incremental improvement.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134746

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/RISCV/rvv-load-store.ll
  llvm/test/Transforms/SLPVectorizer/RISCV/load-store.ll
  llvm/test/Transforms/SLPVectorizer/RISCV/rvv-min-vector-size.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134746.463249.patch
Type: text/x-patch
Size: 9690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/740faaa8/attachment-0001.bin>


More information about the llvm-commits mailing list