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

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 15:54:47 PDT 2025


QuantumSegfault wrote:

I ran the test-suite, and my changes introduced regressions in three tests.

* CodeGen/WebAssembly/simd.ll
* LLVM :: Transforms/LoopVectorize/WebAssembly/int-mac-reduction-costs.ll
* LLVM :: Transforms/LoopVectorize/WebAssembly/memory-interleave.ll

The SIMD test fails now because there are various ANDs that are no longer being folded into the zext loads. I'm guessing that's because I marked extending loads "Custom" and it can no longer reason about it? The other two tests seem to be failing for similar reasons.

What should I do about it? Is my code flawed, or do the tests need to be regenerated?

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


More information about the llvm-commits mailing list