[llvm] [AMDGPU][LSV] Restrict large vectors in graphics (PR #92540)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 12:31:23 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;
+
+ if (AddrSpace == AMDGPUAS::CONSTANT_ADDRESS ||
----------------
arsenm wrote:
This should probably be using isExtendedGlobalAddrSpace (which should also cover the buffers, but it doesn't...)
https://github.com/llvm/llvm-project/pull/92540
More information about the llvm-commits
mailing list