[RISCV] Replace ISD::FP_EXTEND and ISD::FP_ROUND with RVV VL op.
authorjacquesguan <Jianjian.Guan@streamcomputing.com>
Wed, 11 May 2022 09:17:43 +0000 (09:17 +0000)
committerjacquesguan <Jianjian.Guan@streamcomputing.com>
Thu, 26 May 2022 02:17:31 +0000 (02:17 +0000)
commitb271488e8b13a2b776c2e80769a192607521687e
tree16f7c4f298876425aedc060356e18632d8630e20
parent65fd1e91b0f864f6f97742f2ed5d0243a9dc8f55
[RISCV] Replace ISD::FP_EXTEND and ISD::FP_ROUND with RVV VL op.

This patch tries to solve the incoordination between the direct and intermediate  cast caused by D123975.
This patch replaces ISD::FP_EXTEND and ISD::FP_ROUND with RVV VL op in the lowering of FP scalable vector direct cast to unify with the intermediate cast.
And it also changes the FP widenning pattern with the VL op.

Differential Revision: https://reviews.llvm.org/D125364
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td