[PATCH] D134460: [LV] Adjust cost model to use uniform store lowering for unpredicated uniform stores

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 22 10:50:12 PDT 2022


reames created this revision.
reames added reviewers: fhahn, Ayal.
Herald added subscribers: frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, bollu, simoncook, johnrusso, rbar, asb, hiraditya, mcrosier.
Herald added a project: All.
reames requested review of this revision.
Herald added subscribers: pcwang-thead, alextsao1999, MaskRay.
Herald added a project: LLVM.

Follow up to D133580 <https://reviews.llvm.org/D133580>; adjust the cost model to prefer uniform store lowering for scalable stores which are unpredicated.

The impact here isn't in the uniform store lowering quality itself.  InstCombine happily converts the scatter form into the single store form.  The main impact is in letting the rest of the cost model make choices based on the knowledge that the vector will be scalarized on use.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134460

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/sve-inv-store.ll
  llvm/test/Transforms/LoopVectorize/RISCV/uniform-load-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134460.462238.patch
Type: text/x-patch
Size: 9851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/4e11b6e6/attachment-0001.bin>


More information about the llvm-commits mailing list