[llvm] [WebAssembly] Fold unsigned offset (PR #145829)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 11:11:15 PDT 2025


================
@@ -354,6 +354,16 @@ bool WebAssemblyDAGToDAGISel::SelectAddrAddOperands(MVT OffsetType, SDValue N,
       Addr = OtherOp;
       return true;
     }
+
+    // Fold Add of Global Address straight into load
----------------
lukel97 wrote:

This is an extreme nit, but it would be nice if this matched the other comment in SelectAddrOperands below:

`// Fold target global addresses into the offset.`

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


More information about the llvm-commits mailing list