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)
commit9d6797ae5804e4bf9a0a760d136d4b6a28b47b83
treefaf88ff2b7d22e68157bc65910ef800d64e69c74
parentb3931b814adc8a6c3d6b8b1d6a2a0faa6d4cdc52
R600/SI: Insert s_waitcnt before s_barrier instructions.

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

llvm-svn: 225290
llvm/lib/Target/R600/SIInsertWaits.cpp
llvm/test/CodeGen/R600/llvm.AMDGPU.barrier.global.ll
llvm/test/CodeGen/R600/llvm.AMDGPU.barrier.local.ll