[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 22:39:55 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:

This sounds like just a bug, and this should be folded into shouldBitcastLoadStoreType. It already tries to handle this case, just too late 

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


More information about the llvm-commits mailing list