[llvm] [AMDGPU][True16] Legalize S16 for G_STORE/G_LOAD in GlobalISel when True16 is enabled (PR #176963)
Petar Avramovic via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 05:47:50 PDT 2026
================
@@ -1573,6 +1573,16 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const GCNSubtarget &ST_,
{V4S32, ConstantPtr, V4S32, GlobalAlign32},
{S64, ConstantPtr, S64, GlobalAlign32},
{V2S32, ConstantPtr, V2S32, GlobalAlign32}});
+
+ if (ST.useRealTrue16Insts()) {
+ Actions.legalForTypesWithMemDesc({{S16, GlobalPtr, S8, GlobalAlign8},
+ {S16, GlobalPtr, S16, GlobalAlign16},
+ {S16, LocalPtr, S8, 8},
+ {S16, LocalPtr, S16, 16},
+ {S16, PrivatePtr, S8, 8},
+ {S16, PrivatePtr, S16, 16}});
+ }
----------------
petar-avramovic wrote:
think these explicit checks are enough for test changes in this patch
https://github.com/llvm/llvm-project/pull/176963
More information about the llvm-commits
mailing list