[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
================
@@ -464,8 +464,8 @@ static bool isLoadStoreSizeLegal(const GCNSubtarget &ST,
MemSize = std::max(MemSize, Align);
#endif
- // Only 1-byte and 2-byte to 32-bit extloads are valid.
- if (MemSize != RegSize && RegSize != 32)
+ // Only allow extloads to up to 32 bits.
+ if (MemSize != RegSize && RegSize > 32)
----------------
petar-avramovic wrote:
why is this needed exactly, I was testing it out and think it only makes llvm/test/CodeGen/AMDGPU/flat-saddr-load.ll different between +/- true16
think that
https://github.com/llvm/llvm-project/pull/176963
More information about the llvm-commits
mailing list