[llvm] [RISCV] Convert LWU to LW if possible in RISCVOptWInstrs (PR #144703)

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 06:16:06 PDT 2025


================
@@ -808,5 +831,7 @@ bool RISCVOptWInstrs::runOnMachineFunction(MachineFunction &MF) {
   if (ST.preferWInst())
     MadeChange |= appendWSuffixes(MF, TII, ST, MRI);
 
+  MadeChange |= convertZExtLoads(MF, TII, ST, MRI);
----------------
asb wrote:

I'll try that out.

https://github.com/llvm/llvm-project/pull/144703


More information about the llvm-commits mailing list