[llvm-branch-commits] [llvm] [AMDGPU] Add support for sub-dword types for address space 13 (PR #213223)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 2 16:53:20 PST 2026
================
@@ -1833,6 +1852,11 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
{S16, ConstantPtr, S8, GlobalAlign8}})
.legalIf([=](const LegalityQuery &Query) -> bool {
return isLoadStoreLegal(ST, Query);
+ })
+ // Always take the custom path, so an unsupported access is
+ // diagnosed cleanly rather than failing to legalize.
+ .customIf([](const LegalityQuery &Query) -> bool {
----------------
arsenm wrote:
This is now ordered above some legal loads specified below, we want all legal cases to be first in the rule sets
https://github.com/llvm/llvm-project/pull/213223
More information about the llvm-branch-commits
mailing list