[llvm-branch-commits] [llvm] [AMDGPU] Price under-aligned memory operations (PR #233262)
Krzysztof Drewniak via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 3 12:51:34 PST 2026
================
@@ -2222,6 +2222,19 @@ InstructionCost GCNTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src,
bool IsDS = AddressSpace == AMDGPUAS::LOCAL_ADDRESS ||
AddressSpace == AMDGPUAS::REGION_ADDRESS;
bool HasDwordx3 = ST->hasDwordx3LoadStores();
+ bool HasUnalignedAccess = ST->hasUnalignedBufferAccessEnabled();
----------------
krzysz00 wrote:
While you're here, you can also price `ptr addrspace(7)` - and possibly `ptr addrspace(9)` - they allow underaligned accesses on the same control as globals, and they've got extra splits based on whether the buffer OOB mode is strict or not.
See LowerBufferFatPointers for details
https://github.com/llvm/llvm-project/pull/233262
More information about the llvm-branch-commits
mailing list