[llvm] [AMDGPU][LSV] Restrict large vectors (PR #92540)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 06:45:41 PDT 2024


================
@@ -364,19 +364,9 @@ unsigned GCNTTIImpl::getStoreVectorFactor(unsigned VF, unsigned StoreSize,
 }
 
 unsigned GCNTTIImpl::getLoadStoreVecRegBitWidth(unsigned AddrSpace) const {
-  if (AddrSpace == AMDGPUAS::GLOBAL_ADDRESS ||
-      AddrSpace == AMDGPUAS::CONSTANT_ADDRESS ||
-      AddrSpace == AMDGPUAS::CONSTANT_ADDRESS_32BIT ||
-      AddrSpace == AMDGPUAS::BUFFER_FAT_POINTER ||
-      AddrSpace == AMDGPUAS::BUFFER_RESOURCE ||
-      AddrSpace == AMDGPUAS::BUFFER_STRIDED_POINTER) {
-    return 512;
-  }
-
   if (AddrSpace == AMDGPUAS::PRIVATE_ADDRESS)
     return 8 * ST->getMaxPrivateElementSize();
----------------
arsenm wrote:

ok, that's not really what getMaxPrivateElementSize means but I guess that works 

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


More information about the llvm-commits mailing list