1 # RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass si-insert-waitcnts %s -o - | FileCheck %s
3 # Ensure we insert waitcnts after any meta instructions at the start of
4 # non-kernel functions. Without this, the inserted waitcnts can affect e.g. the
5 # PC ranges covered by CFI and debug values.
8 # CHECK-LABEL: name: skip_implicit_def{{$}}
11 name: skip_implicit_def
18 # CHECK-LABEL: name: skip_kill{{$}}
28 # CHECK-LABEL: name: skip_cfi{{$}}
29 # CHECK: CFI_INSTRUCTION
35 CFI_INSTRUCTION undefined $sgpr0
38 # CHECK-LABEL: name: skip_eh_label{{$}}
48 # CHECK-LABEL: name: skip_gc_label{{$}}
58 # CHECK-LABEL: name: skip_dbg_value{{$}}
68 # CHECK-LABEL: name: skip_dbg_label{{$}}
78 # CHECK-LABEL: name: skip_lifetime_start{{$}}
79 # CHECK: LIFETIME_START
81 name: skip_lifetime_start
88 # CHECK-LABEL: name: skip_lifetime_end{{$}}
91 name: skip_lifetime_end