[RISCV] Match vwmulsu_vx with scalar splat input.
authorCraig Topper <craig.topper@sifive.com>
Tue, 15 Feb 2022 16:45:21 +0000 (08:45 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 15 Feb 2022 16:45:21 +0000 (08:45 -0800)
commitab6e02dded99b11069de4af3b361abdbf6253ac0
treed964a6ae4fe564c18e1d0b1b7b45a1172c6e82f0
parentd132b47bb9c2f3028c4d2897b4e920579b055103
[RISCV] Match vwmulsu_vx with scalar splat input.

This is a more generic version of D119110 that uses MaskedValueIsZero
to do the matching and SimplifyDemandedBits to remove any unneeded
AND instructions.

Tests were taken from D119110.

Reviewed By: Chenbing.Zheng

Differential Revision: https://reviews.llvm.org/D119622
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vwmulsu.ll