[RISCV] Transform fixable instruction in place in RISCVSExtWRemoval. NFC
authorCraig Topper <craig.topper@sifive.com>
Tue, 22 Nov 2022 03:22:51 +0000 (19:22 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 22 Nov 2022 03:22:53 +0000 (19:22 -0800)
commit4e6adb394ebcdb2350fac6b47f7b789750e1f300
treea15a5bd0826773b9446d326dd69011ca8f7edac3
parenta391b49ce8524ddb6283d6605544a354d187a9d4
[RISCV] Transform fixable instruction in place in RISCVSExtWRemoval. NFC

Instead of creating a new instruction and copying operands, we can
use setDesc to convert in place.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D137970
llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp