aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorTony <Tony.Tye@amd.com>2020-10-16 07:09:38 +0000
committerTony <Tony.Tye@amd.com>2020-10-20 22:55:12 +0000
commit1bc7bfffdbabffcdb43cc2829c551c33aed57742 (patch)
tree9c721a505b7e063ccaccd60e79deeba106b2094f /clang/lib/Basic/SourceManager.cpp
parent1298252f80fec0cd77aabef5cb133e7b030852e4 (diff)
downloadllvm-1bc7bfffdbabffcdb43cc2829c551c33aed57742.zip
llvm-1bc7bfffdbabffcdb43cc2829c551c33aed57742.tar.gz
llvm-1bc7bfffdbabffcdb43cc2829c551c33aed57742.tar.bz2
[AMDGPU] Optimize waitcnt insertion for flat memory operations
Change waitcnt insertion to check the memory operand tokens to see if flat memory operations access VMEM in the same way it does to check if accessing LDS. This avoids adding waitcnt for counters for address spaces that are not accessed. In addition, only generate the pessimistic waitcnt 0 if a flat memory operation appears to access both VMEM and LDS. This benefits flat memory operations that explicitly specify the address space as GLOBAL or LOCAL. Differential Revision: https://reviews.llvm.org/D89618
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions