]> granicus.if.org Git - llvm/commit
[AMDGPU] Eliminate barrier if workgroup size is not greater than wavefront size
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 6 Apr 2017 16:48:30 +0000 (16:48 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 6 Apr 2017 16:48:30 +0000 (16:48 +0000)
commit3b10e5fb8dd189f1bea96be340a075cf19a8b3b6
tree1c8ee68f2d5c29fd786da440dbbc5af5e616dc5e
parentba2269c0f0633dfbb85b26d3a217e5f4ae47744a
[AMDGPU] Eliminate barrier if workgroup size is not greater than wavefront size

If a workgroup size is known to be not greater than wavefront size
the s_barrier instruction is not needed since all threads are guarantied
to come to the same point at the same time.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299659 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIISelLowering.cpp
test/CodeGen/AMDGPU/barrier-elimination.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/indirect-private-64.ll