Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / attributor-noopt.ll
blobd8388463554621de7d5a862ae714db0c7fe2c708
1 ; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck -check-prefix=OPT %s
2 ; RUN: llc -O0 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 < %s | FileCheck -check-prefix=NOOPT %s
4 ; Check that AMDGPUAttributor is not run with -O0.
5 ; OPT: .amdhsa_user_sgpr_private_segment_buffer 1
6 ; OPT: .amdhsa_user_sgpr_dispatch_ptr 0
7 ; OPT: .amdhsa_user_sgpr_queue_ptr 0
8 ; OPT: .amdhsa_user_sgpr_kernarg_segment_ptr 0
9 ; OPT: .amdhsa_user_sgpr_dispatch_id 0
10 ; OPT: .amdhsa_user_sgpr_flat_scratch_init 0
11 ; OPT: .amdhsa_user_sgpr_private_segment_size 0
12 ; OPT: .amdhsa_system_sgpr_private_segment_wavefront_offset 0
13 ; OPT: .amdhsa_system_sgpr_workgroup_id_x 1
14 ; OPT: .amdhsa_system_sgpr_workgroup_id_y 0
15 ; OPT: .amdhsa_system_sgpr_workgroup_id_z 0
16 ; OPT: .amdhsa_system_sgpr_workgroup_info 0
17 ; OPT: .amdhsa_system_vgpr_workitem_id 0
19 ; NOOPT: .amdhsa_user_sgpr_private_segment_buffer 1
20 ; NOOPT: .amdhsa_user_sgpr_dispatch_ptr 1
21 ; NOOPT: .amdhsa_user_sgpr_queue_ptr 1
22 ; NOOPT: .amdhsa_user_sgpr_kernarg_segment_ptr 1
23 ; NOOPT: .amdhsa_user_sgpr_dispatch_id 1
24 ; NOOPT: .amdhsa_user_sgpr_flat_scratch_init 0
25 ; NOOPT: .amdhsa_user_sgpr_private_segment_size 0
26 ; NOOPT: .amdhsa_system_sgpr_private_segment_wavefront_offset 0
27 ; NOOPT: .amdhsa_system_sgpr_workgroup_id_x 1
28 ; NOOPT: .amdhsa_system_sgpr_workgroup_id_y 1
29 ; NOOPT: .amdhsa_system_sgpr_workgroup_id_z 1
30 ; NOOPT: .amdhsa_system_sgpr_workgroup_info 0
31 ; NOOPT: .amdhsa_system_vgpr_workitem_id 2
32 define amdgpu_kernel void @foo() {
33   ret void