[llvm] [WebAssembly] Fix lowering of (extending) loads from addrspace(1) globals (PR #155937)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 3 20:09:48 PDT 2025
QuantumSegfault wrote:
Okay. `reduceLoadWidth` doesn't work because `isLegalNarrowLdSt` on line 15539 returns false, because of this starting line 6915
```cpp
if (LegalOperations &&
!TLI.isLoadExtLegal(ExtType, Load->getValueType(0), MemVT))
return false;
```
It all comes down to the same: `!isLoadExtLegal` :/
Not sure what to do about it.
https://github.com/llvm/llvm-project/pull/155937
More information about the llvm-commits
mailing list