[RISCV] Use lowerScalarInsert when folding op into reduction [nfc]
authorPhilip Reames <preames@rivosinc.com>
Tue, 13 Dec 2022 17:02:01 +0000 (09:02 -0800)
committerPhilip Reames <listmail@philipreames.com>
Tue, 13 Dec 2022 17:08:39 +0000 (09:08 -0800)
commitecabba04a35432ad94447d199cf6127d57415456
tree394071271ca605277c47b5fe775aa5ff0386d04a
parent44e0427cf08516028206e266563ecc3dbfe09f2f
[RISCV] Use lowerScalarInsert when folding op into reduction [nfc]

This doesn't cause any functional change since this is being applied to a insert generated by the same routine.  This is mostly about consolidating the logic for vmv.s.x into one place to simplify future changes.
llvm/lib/Target/RISCV/RISCVISelLowering.cpp