[AMDGPU] Add alias.scope metadata to lowered LDS struct
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 17 Aug 2021 19:58:07 +0000 (12:58 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 19 Aug 2021 18:40:30 +0000 (11:40 -0700)
commit8d7d89b0811da55c9f4bf21682b563b0ce521f97
treeac143ceb1ba76a5b643d47321600300c4e74eda7
parent8cf5b69f69bf95413f4009eddd94b2cc0a2d3412
[AMDGPU] Add alias.scope metadata to lowered LDS struct

Alias analysis is unable to disambiguate accesses to the structure
fields without it unlike distinct variables. As a result we cannot
combine ds_read and ds_write operations in a case of any store in
between which always considered clobbering.

Differential Revision: https://reviews.llvm.org/D108315
llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
llvm/test/CodeGen/AMDGPU/lower-lds-struct-aa-merge.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/lower-lds-struct-aa.ll [new file with mode: 0644]