[RISCV][CostModel] Add half type support for the cost model of sqrt/fabs
authorliqinweng <Liqin.Weng@streamcomputing.com>
Mon, 9 Jan 2023 04:56:10 +0000 (12:56 +0800)
committerliqinweng <Liqin.Weng@streamcomputing.com>
Mon, 9 Jan 2023 04:57:03 +0000 (12:57 +0800)
commit1f8746cc80047acddc8c5be37c7d4eb0a7ea2e1c
tree9071cc61776afb4f740b7e7e96b799a023695a60
parent47fb8ae2f9a4075de05433ef24f459b6befd1730
[RISCV][CostModel] Add half type support for the cost model of sqrt/fabs

1. Refactor for costs of sqrt/fabs
2. Add half type support for the cost model of sqrt/fabs

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D132908
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/fp-min-max-abs.ll
llvm/test/Analysis/CostModel/RISCV/fp-sqrt-pow.ll