[llvm-branch-commits] [llvm] [AMDGPU] Add support for sub-dword types for address space 13 (PR #213223)
Tim Gymnich via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Aug 2 03:49:17 PDT 2026
================
@@ -1813,6 +1831,13 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
{S16, ConstantPtr, S8, GlobalAlign8}})
.legalIf([=](const LegalityQuery &Query) -> bool {
return isLoadStoreLegal(ST, Query);
+ })
+ // VGPR ("as memory") extending loads are custom-lowered to
+ // G_AMDGPU_REG_LOAD_BITS. Always take the custom path so an
+ // unsupported access is diagnosed cleanly rather than failing to
+ // legalize.
+ .customIf([=](const LegalityQuery &Query) -> bool {
----------------
tgymnich wrote:
```suggestion
.customIf([](const LegalityQuery &Query) -> bool {
```
https://github.com/llvm/llvm-project/pull/213223
More information about the llvm-branch-commits
mailing list