[llvm] [WebAssembly] Fix lowering of (extending) loads from addrspace(1) globals (PR #155937)

Demetrius Kanios via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 10:04:01 PDT 2026


QuantumSegfault wrote:

> > I think this is in a place where it's workable now, and maybe it makes more sense to iterate on it after landing.
> 
> But I'll be away next week. So sometime after that :)

I'll try to round this out with inserting an "unreachable" to replace a LOAD whose load type exceeds the size of the IR global (that is, load from i16 from a global declared i8 inserts `unreachable` (Wasm); even though the i8 global is really backed by a i32).

But beyond that, yeah. It can always be tweaked after the merge if we find we don't like it.

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


More information about the llvm-commits mailing list