[llvm] [WebAssembly] Fix lowering of (extending) loads from addrspace(1) globals (PR #155937)
Derek Schuff via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 17:12:15 PDT 2026
================
@@ -1793,6 +1817,11 @@ static bool IsWebAssemblyGlobal(SDValue Op) {
if (const GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Op))
return WebAssembly::isWasmVarAddressSpace(GA->getAddressSpace());
+ if (Op->getOpcode() == WebAssemblyISD::Wrapper)
----------------
dschuff wrote:
nit: the wrapper check could go first, and assign Op to its operand, and then the isWasmVarAddressSpace check could be deduplicated.
https://github.com/llvm/llvm-project/pull/155937
More information about the llvm-commits
mailing list