[llvm] [AMDGPU][GlobalISel] Allow selecting buffer_load/store of pointers (PR #110714)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 1 11:48:48 PDT 2024


================
@@ -5805,6 +5806,10 @@ Register AMDGPULegalizerInfo::fixStoreSourceType(
   if (hasBufferRsrcWorkaround(Ty))
     return castBufferRsrcToV4I32(VData, B);
 
+  if (shouldBitcastLoadStoreType(ST, Ty, MemTy) || Ty.isPointerVector()) {
----------------
arsenm wrote:

I think the Ty.isPointerVector() is redundant, these should be handled under the loadStoreBitcastWorkaround case 

https://github.com/llvm/llvm-project/pull/110714


More information about the llvm-commits mailing list