[llvm] [RISCV] Convert LWU to LW if possible in RISCVOptWInstrs (PR #144703)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 3 16:50:00 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);
----------------
topperc wrote:
Can we combine stripWSuffixes/appendWSuffixes/convertZExtLoads into a single function that walks over the function once and does the right thing?
https://github.com/llvm/llvm-project/pull/144703
More information about the llvm-commits
mailing list