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

Piotr Sobczak via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 06:33:26 PDT 2024


================
@@ -364,14 +364,15 @@ unsigned GCNTTIImpl::getStoreVectorFactor(unsigned VF, unsigned StoreSize,
 }
 
 unsigned GCNTTIImpl::getLoadStoreVecRegBitWidth(unsigned AddrSpace) const {
-  if (AddrSpace == AMDGPUAS::GLOBAL_ADDRESS ||
-      AddrSpace == AMDGPUAS::CONSTANT_ADDRESS ||
+  if (AddrSpace == AMDGPUAS::GLOBAL_ADDRESS)
+    return 512;
----------------
piotrAMD wrote:

This patch does not have any effect for GLOBAL_ADDRESS. Is the suggestion to also modify the value returned for this case to 128? (I haven't investigated that).

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


More information about the llvm-commits mailing list