[llvm] [RISCV] add more generic macrofusions (PR #151140)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 08:05:19 PDT 2025


================
@@ -91,3 +91,94 @@ def TuneLDADDFusion
                    CheckIsImmOperand<2>,
                    CheckImmOperand<2, 0>
                  ]>>;
+
+// Fuse add with lw:
+//   add rd, rs1, rs2
+//   lw rd, 0(rd)
----------------
topperc wrote:

Why only lw?

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


More information about the llvm-commits mailing list