[PATCH] D132296: [RISCV] Add cost model for compare and select instructions.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 20 06:55:33 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.

This patch adds cost model for vector compare and select instructions. For vector FP compare instruction, it only add the comparisions supported natively.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132296

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
  llvm/test/Analysis/CostModel/RISCV/rvv-cmp.ll
  llvm/test/Analysis/CostModel/RISCV/rvv-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132296.454209.patch
Type: text/x-patch
Size: 112474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220820/68c40b15/attachment-0001.bin>


More information about the llvm-commits mailing list