R600: Use new barrier intrinsic

llvm-svn: 275874
This commit is contained in:
Matt Arsenault 2016-07-18 18:42:17 +00:00
parent b51dcb97bb
commit 1ab0d9c1ee
1 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
declare i32 @__clc_clk_local_mem_fence() #1
declare i32 @__clc_clk_global_mem_fence() #1
declare void @llvm.AMDGPU.barrier.local() #0
declare void @llvm.AMDGPU.barrier.global() #0
declare void @llvm.r600.group.barrier() #0
define void @barrier(i32 %flags) #2 {
barrier_local_test:
@ -11,7 +10,7 @@ barrier_local_test:
br i1 %1, label %barrier_local, label %barrier_global_test
barrier_local:
call void @llvm.AMDGPU.barrier.local()
call void @llvm.r600.group.barrier()
br label %barrier_global_test
barrier_global_test:
@ -21,7 +20,7 @@ barrier_global_test:
br i1 %3, label %barrier_global, label %done
barrier_global:
call void @llvm.AMDGPU.barrier.global()
call void @llvm.r600.group.barrier()
br label %done
done: