AMDGPU: mark atomic instructions as sources of divergence
authorNicolai Haehnle <nhaehnle@gmail.com>
Thu, 17 Mar 2016 16:21:59 +0000 (16:21 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Thu, 17 Mar 2016 16:21:59 +0000 (16:21 +0000)
commit79cad857a0e8fddccad46fcbc81c0ea66da7cfb7
tree49cb5a2a7a28089e9dcfbf3243af8343da62dc3e
parentf8bff1c31c257abb760f08ef30f70205bc4b41f5
AMDGPU: mark atomic instructions as sources of divergence

Summary:
As explained by the comment, threads will typically see different values
returned by atomic instructions even if the arguments are equal.

Reviewers: arsenm, tstellarAMD

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D18156

llvm-svn: 263719
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
llvm/test/Analysis/DivergenceAnalysis/AMDGPU/atomics.ll [new file with mode: 0644]