[llvm] [AMDGPU][True16] Legalize S16 for G_STORE/G_LOAD in GlobalISel when True16 is enabled (PR #176963)
Domenic Nutile via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 14:05:51 PDT 2026
================
@@ -1573,6 +1573,15 @@ 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},
----------------
saxlungs wrote:
I made a few attempts to use the `legaliIf` to replace this check, but couldn't get it to work. Please let me know if this is a requirement if you're okay with it as-is
https://github.com/llvm/llvm-project/pull/176963
More information about the llvm-commits
mailing list