R600/SI: Insert s_waitcnt before s_barrier instructions.
authorTom Stellard <thomas.stellard@amd.com>
Tue, 6 Jan 2015 19:52:07 +0000 (19:52 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 6 Jan 2015 19:52:07 +0000 (19:52 +0000)
commitbac89f3dd285221109d1907d352d290b25c1c63c
tree329ad505e7f6512064f69a5e8bb4eff4c00db8e1
parentfad04531a9ce9fa816f65ec8fc902e4392cfcb4b
R600/SI: Insert s_waitcnt before s_barrier instructions.

This ensures that all memory operations are complete when all threads
reach the barrier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225290 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInsertWaits.cpp
test/CodeGen/R600/llvm.AMDGPU.barrier.global.ll
test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll