mirror of
https://github.com/RPCS3/llvm.git
synced 2026-06-30 21:08:10 -04:00
AMDGPU: Increase vcc liveness scan threshold
Avoids a test regression in a future patch. Also add debug printing on this case, so I waste less time debugging folds in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375367 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -245,7 +245,6 @@ define amdgpu_kernel void @test_copy_v4i8_extra_use(<4 x i8> addrspace(1)* %out0
|
||||
; SI-NEXT: s_mov_b32 s6, s10
|
||||
; SI-NEXT: s_mov_b32 s7, s11
|
||||
; SI-NEXT: s_movk_i32 s1, 0xff
|
||||
; SI-NEXT: s_movk_i32 s2, 0x900
|
||||
; SI-NEXT: s_waitcnt vmcnt(0)
|
||||
; SI-NEXT: v_lshrrev_b32_e32 v1, 16, v0
|
||||
; SI-NEXT: buffer_store_dword v0, off, s[4:7], 0
|
||||
@@ -257,7 +256,7 @@ define amdgpu_kernel void @test_copy_v4i8_extra_use(<4 x i8> addrspace(1)* %out0
|
||||
; SI-NEXT: v_add_i32_e32 v1, vcc, 9, v1
|
||||
; SI-NEXT: v_or_b32_e32 v0, v2, v0
|
||||
; SI-NEXT: v_and_b32_e32 v1, s1, v1
|
||||
; SI-NEXT: v_add_i32_e32 v0, vcc, s2, v0
|
||||
; SI-NEXT: v_add_i32_e32 v0, vcc, 0x900, v0
|
||||
; SI-NEXT: v_or_b32_e32 v1, v3, v1
|
||||
; SI-NEXT: v_and_b32_e32 v0, 0xffff, v0
|
||||
; SI-NEXT: v_lshlrev_b32_e32 v1, 16, v1
|
||||
@@ -326,7 +325,6 @@ define amdgpu_kernel void @test_copy_v4i8_x2_extra_use(<4 x i8> addrspace(1)* %o
|
||||
; SI-NEXT: buffer_load_dword v0, v[0:1], s[12:15], 0 addr64
|
||||
; SI-NEXT: s_mov_b32 s16, 0xff00
|
||||
; SI-NEXT: s_movk_i32 s17, 0xff
|
||||
; SI-NEXT: s_movk_i32 s18, 0x900
|
||||
; SI-NEXT: s_mov_b32 s10, -1
|
||||
; SI-NEXT: s_mov_b32 s8, s4
|
||||
; SI-NEXT: s_mov_b32 s9, s5
|
||||
@@ -345,7 +343,7 @@ define amdgpu_kernel void @test_copy_v4i8_x2_extra_use(<4 x i8> addrspace(1)* %o
|
||||
; SI-NEXT: v_and_b32_e32 v3, s17, v3
|
||||
; SI-NEXT: v_or_b32_e32 v2, v2, v3
|
||||
; SI-NEXT: v_and_b32_e32 v1, s17, v1
|
||||
; SI-NEXT: v_add_i32_e32 v2, vcc, s18, v2
|
||||
; SI-NEXT: v_add_i32_e32 v2, vcc, 0x900, v2
|
||||
; SI-NEXT: v_or_b32_e32 v1, v4, v1
|
||||
; SI-NEXT: v_and_b32_e32 v2, 0xffff, v2
|
||||
; SI-NEXT: v_lshlrev_b32_e32 v1, 16, v1
|
||||
|
||||
@@ -280,7 +280,6 @@ define amdgpu_kernel void @load_v4i8_to_v4f32_2_uses(<4 x float> addrspace(1)* n
|
||||
; SI-NEXT: s_mov_b32 s10, s2
|
||||
; SI-NEXT: s_mov_b32 s11, s3
|
||||
; SI-NEXT: s_load_dwordx2 s[0:1], s[0:1], 0xb
|
||||
; SI-NEXT: s_movk_i32 s13, 0x900
|
||||
; SI-NEXT: s_waitcnt vmcnt(0)
|
||||
; SI-NEXT: v_lshrrev_b32_e32 v4, 16, v1
|
||||
; SI-NEXT: v_add_i32_e32 v7, vcc, 9, v1
|
||||
@@ -298,7 +297,7 @@ define amdgpu_kernel void @load_v4i8_to_v4f32_2_uses(<4 x float> addrspace(1)* n
|
||||
; SI-NEXT: v_or_b32_e32 v0, v6, v7
|
||||
; SI-NEXT: v_lshlrev_b32_e32 v5, 8, v5
|
||||
; SI-NEXT: v_and_b32_e32 v1, s12, v4
|
||||
; SI-NEXT: v_add_i32_e32 v0, vcc, s13, v0
|
||||
; SI-NEXT: v_add_i32_e32 v0, vcc, 0x900, v0
|
||||
; SI-NEXT: v_or_b32_e32 v1, v5, v1
|
||||
; SI-NEXT: v_and_b32_e32 v0, 0xffff, v0
|
||||
; SI-NEXT: v_lshlrev_b32_e32 v1, 16, v1
|
||||
|
||||
@@ -7,8 +7,6 @@ declare void @llvm.amdgcn.s.barrier() #1
|
||||
|
||||
; Function Attrs: nounwind
|
||||
; CHECK-LABEL: {{^}}signed_ds_offset_addressing_loop:
|
||||
; SI: s_movk_i32 [[K_0X88:s[0-9]+]], 0x
|
||||
; SI: s_movk_i32 [[K_0X100:s[0-9]+]], 0x100
|
||||
; CHECK: BB0_1:
|
||||
; CHECK: v_add_i32_e32 [[VADDR:v[0-9]+]],
|
||||
; SI-DAG: ds_read_b32 v{{[0-9]+}}, [[VADDR]]
|
||||
@@ -16,9 +14,9 @@ declare void @llvm.amdgcn.s.barrier() #1
|
||||
; SI-DAG: ds_read_b32 v{{[0-9]+}}, [[VADDR8]]
|
||||
; SI-DAG: v_add_i32_e32 [[VADDR0x80:v[0-9]+]], vcc, 0x80, [[VADDR]]
|
||||
; SI-DAG: ds_read_b32 v{{[0-9]+}}, [[VADDR0x80]]
|
||||
; SI-DAG: v_add_i32_e32 [[VADDR0x88:v[0-9]+]], vcc, [[K_0X88]], [[VADDR]]
|
||||
; SI-DAG: v_add_i32_e32 [[VADDR0x88:v[0-9]+]], vcc, 0x88, [[VADDR]]
|
||||
; SI-DAG: ds_read_b32 v{{[0-9]+}}, [[VADDR0x88]]
|
||||
; SI-DAG: v_add_i32_e32 [[VADDR0x100:v[0-9]+]], vcc, [[K_0X100]], [[VADDR]]
|
||||
; SI-DAG: v_add_i32_e32 [[VADDR0x100:v[0-9]+]], vcc, 0x100, [[VADDR]]
|
||||
; SI-DAG: ds_read_b32 v{{[0-9]+}}, [[VADDR0x100]]
|
||||
|
||||
; CI-DAG: ds_read2_b32 v{{\[[0-9]+:[0-9]+\]}}, [[VADDR]] offset1:2
|
||||
|
||||
@@ -54,8 +54,7 @@ define amdgpu_kernel void @test_local(i32 addrspace(1)*) {
|
||||
}
|
||||
|
||||
; GCN-LABEL: {{^}}test_global
|
||||
; GCN: s_movk_i32 [[K:s[0-9]+]], 0x888
|
||||
; GCN: v_add_u32_e32 v{{[0-9]+}}, vcc, [[K]], v{{[0-9]+}}
|
||||
; GCN: v_add_u32_e32 v{{[0-9]+}}, vcc, 0x888, v{{[0-9]+}}
|
||||
; GCN: flat_store_dword
|
||||
; GCN: s_waitcnt vmcnt(0) lgkmcnt(0){{$}}
|
||||
; GCN-NEXT: s_barrier
|
||||
|
||||
@@ -80,10 +80,10 @@ define hidden amdgpu_kernel void @clmem_read(i8 addrspace(1)* %buffer) {
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:-2048
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off{{$}}
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:2048
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off{{$}}
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:2048
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:-4096
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:-2048
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off{{$}}
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:2048
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off offset:-4096
|
||||
; GFX9: global_load_dwordx2 v[{{[0-9]+:[0-9]+}}], v[{{[0-9]+:[0-9]+}}], off
|
||||
|
||||
Reference in New Issue
Block a user