[RISCV] Add cost model for compare and select instructions.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Sat, 20 Aug 2022 13:33:00 +0000 (21:33 +0800)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Tue, 13 Sep 2022 06:44:46 +0000 (14:44 +0800)
commitb98b4fae754d896df74046890c3d74f55c61c92f
tree50592deb856014af5b07c7d34f288927e521760e
parent86d5586d78d813a6921d786f7ddb1a41c6fb56e0
[RISCV] Add cost model for compare and select instructions.

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

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D132296
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/rvv-cmp.ll