mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-19 00:20:25 +00:00
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
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
; FUNC-LABEL: {{^}}test_barrier_global:
|
||||
; EG: GROUP_BARRIER
|
||||
; SI: buffer_store_dword
|
||||
; SI: s_waitcnt
|
||||
; SI: s_barrier
|
||||
|
||||
define void @test_barrier_global(i32 addrspace(1)* %out) {
|
||||
|
@@ -3,6 +3,9 @@
|
||||
|
||||
; FUNC-LABEL: {{^}}test_barrier_local:
|
||||
; EG: GROUP_BARRIER
|
||||
|
||||
; SI: buffer_store_dword
|
||||
; SI: s_waitcnt
|
||||
; SI: s_barrier
|
||||
|
||||
define void @test_barrier_local(i32 addrspace(1)* %out) {
|
||||
|
Reference in New Issue
Block a user