[all-commits] [llvm/llvm-project] 79606e: [AMDGPU] Check atomics aliasing in the clobbering ...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Tue Feb 1 12:33:47 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79606ee85c5384819e34f20c7ebd28d3f8ba306b
      https://github.com/llvm/llvm-project/commit/79606ee85c5384819e34f20c7ebd28d3f8ba306b
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2022-02-01 (Tue, 01 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
    M llvm/test/CodeGen/AMDGPU/noclobber-barrier.ll

  Log Message:
  -----------
  [AMDGPU] Check atomics aliasing in the clobbering annotation

MemorySSA considers any atomic a def to any operation it dominates
just like a barrier or fence. That is correct from memory state
perspective, but not required for the no-clobber metadata since
we are not using it for reordering. Skip such atomics during the
scan just like a barrier if it does not alias with the load.

Differential Revision: https://reviews.llvm.org/D118661




More information about the All-commits mailing list