[RISCV] Match VF variants for masked VFRDIV/VFRSUB
authorFraser Cormack <fraser@codeplay.com>
Thu, 20 Jan 2022 14:46:28 +0000 (14:46 +0000)
committerFraser Cormack <fraser@codeplay.com>
Mon, 24 Jan 2022 10:59:43 +0000 (10:59 +0000)
commite7926e8d972e8129d4b64e10a38719b066a526be
tree06ad25db6461d6598751d073de127de67b87cd98
parent577a6dc9a1864fcc0e938052beae2a9b5362367a
[RISCV] Match VF variants for masked VFRDIV/VFRSUB

This patch follows up on D117697 to help the simple binary operations
behave similarly in the presence of masks.

It also enables CGP sinking support for vp.fdiv and vp.fsub intrinsics,
now that VFRDIV and VFRSUB are consistently matched with a LHS splat for
masked and unmasked variants.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D117783
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfrdiv-vp.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfrsub-vp.ll
llvm/test/CodeGen/RISCV/rvv/sink-splat-operands.ll