[llvm] [AMDGPU][True16] Legalize S16 for stores & loads in GlobalISel when True16 is enabled (PR #176963)
Domenic Nutile via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 08:47:05 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:
Done
https://github.com/llvm/llvm-project/pull/176963
More information about the llvm-commits
mailing list