diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-11-15 10:40:05 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-11-15 10:51:43 -0800 |
commit | c281a6add55a861a16eabe3bb8b436f63ef8e0cb (patch) | |
tree | 51c4ad527eb58a49d22322fc08a2ee3d59661d1f /llvm/lib/Transforms/Utils/BuildLibCalls.cpp | |
parent | 084f5c26a4ad174bfbe1f6ba28385c6324c13bd1 (diff) | |
download | llvm-c281a6add55a861a16eabe3bb8b436f63ef8e0cb.zip llvm-c281a6add55a861a16eabe3bb8b436f63ef8e0cb.tar.gz llvm-c281a6add55a861a16eabe3bb8b436f63ef8e0cb.tar.bz2 |
[RISCV] Add isel pattern for int_riscv_vfmv_s_f with scalar FP constant operand.
Use vmv_s_x instead of the constant will be materialized in a GPR.
This avoids going from GPR to FPR to vector.
We already did this for RISCVISD::VFMV_S_F_VL and probably we should
just turn int_riscv_vfmv_s_f into RISCVISD::VFMV_S_F_VL, but I'd like
to see some improvements to RISCVInsertVSETVLI first.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BuildLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions