[RISCV] Only enable GPR<->FPR32 bitconvert isel patterns on RV32. NFCI
authorCraig Topper <craig.topper@sifive.com>
Thu, 5 Nov 2020 23:44:49 +0000 (15:44 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 6 Nov 2020 00:15:25 +0000 (16:15 -0800)
commit741b04b0b7912611a8a5b7e74462e87b8930a116
treeffe63d3151d7825aab77880f4df3d13cde11032e
parent0e3532da98c5aa62582eee9cca07aaf5844b0b90
[RISCV] Only enable GPR<->FPR32 bitconvert isel patterns on RV32. NFCI

Bitconvert requires the bitwidth to match on both sides. On RV64
the GPR size is i64 so bitconvert between f32 isn't possible. The
node should never be generated so the pattern won't ever match, but
moving the patterns under IsRV32 makes it more obviously impossible.
It also moves it to a similar location to the patterns for the
custom nodes we use for RV64.
llvm/lib/Target/RISCV/RISCVInstrInfoF.td