[PATCH] D131552: [RISCV] Add cost model for mask vector extend and truncate instruction.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 02:29:42 PDT 2022


jacquesguan created this revision.
jacquesguan added reviewers: reames, craig.topper, asb, luismarques, frasercrmck, benshi001.
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.

As extending from or truncating to mask vector do not use the same instructions as the normal cast, this path changed it to 2 which is the number of instructions we used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131552

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/RISCV/cast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131552.451393.patch
Type: text/x-patch
Size: 11247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/07099e51/attachment.bin>


More information about the llvm-commits mailing list