[RISCV] Update combineBinOp_VLToVWBinOp_VL to check the number users after we know...
authorCraig Topper <craig.topper@sifive.com>
Tue, 10 Jan 2023 00:31:15 +0000 (16:31 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 10 Jan 2023 00:44:10 +0000 (16:44 -0800)
commit3f191770fa7682347f150dd2c4c98cad4ae211f2
treeb8ee76d24d6abdaf6b6b1b61287d02ae7707cca8
parent47cc1b9d29eab4ab355c96ed1c6a39226a99e12d
[RISCV] Update combineBinOp_VLToVWBinOp_VL to check the number users after we know what combine we're going to do.

If we're forming vwadd(u).wv we don't care if the already wide
source operand has additional users. It's not affected by the
transform.

Fixes #59345
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/vwadd-vp.ll