[PATCH] D133829: [RISCV] Add cost model for insertelement/extractelement of vector type that should be splitted.
Jianjian Guan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 20:47:19 PDT 2022
jacquesguan created this revision.
jacquesguan added reviewers: reames, craig.topper, asb, luismarques, frasercrmck.
Herald added subscribers: sunshaoce, VincentWu, luke957, StephenFan, vkmr, evandro, 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, hiraditya, arichardson.
Herald added a project: All.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
For the vector that should be splitted, legalizer would use stack store/load to make it. This patch adds cost model by counting stack store/load and scalar store/load cost.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133829
Files:
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/arith-fp.ll
llvm/test/Analysis/CostModel/RISCV/fixed-vector-gather.ll
llvm/test/Analysis/CostModel/RISCV/fixed-vector-scatter.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133829.459970.patch
Type: text/x-patch
Size: 23173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220914/940d873c/attachment.bin>
More information about the llvm-commits
mailing list