[RISCV] Use vmv.v.i vd, 0 instead of vmv.v.x vd, x0 for llvm.riscv.vfmv.v.f with 0.0
authorCraig Topper <craig.topper@sifive.com>
Mon, 11 Jan 2021 23:03:29 +0000 (15:03 -0800)
committerCraig Topper <craig.topper@sifive.com>
Mon, 11 Jan 2021 23:08:05 +0000 (15:08 -0800)
commit278a3ea1b27089dbc7060e02f612c8a3bf137bb2
tree0f6eb7a72ec4a48b29a3d4d326081b6737352936
parent762ffc95550c32606e771b630fcab2e521873419
[RISCV] Use vmv.v.i vd, 0 instead of vmv.v.x vd, x0 for llvm.riscv.vfmv.v.f with 0.0

This matches what we use for integer 0. It's also consistent with
the scalar 'mv' pseudo that uses addi rather than add with x0.
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/test/CodeGen/RISCV/rvv/vfmv.v.f-rv32.ll
llvm/test/CodeGen/RISCV/rvv/vfmv.v.f-rv64.ll