================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to