221
|
1 # RUN: llc -mtriple=amdgcn-amd-amdhsa -run-pass si-pre-emit-peephole -amdgpu-skip-threshold=3 %s -o - | FileCheck %s
|
150
|
2
|
|
3 ---
|
|
4
|
221
|
5 # FIXME: RemoveShortExecBranches should not count dbg_value instructions.
|
150
|
6 # CHECK-LABEL: name: no_count_dbg_value
|
|
7 # CHECK: $vgpr1 = V_MOV_B32_e32 7, implicit $exec
|
|
8 # CHECK-NOT: S_CBRANCH_EXECZ
|
|
9 name: no_count_dbg_value
|
|
10 body: |
|
|
11 bb.0:
|
221
|
12 successors: %bb.1, %bb.2
|
150
|
13
|
|
14 $vgpr1 = V_MOV_B32_e32 7, implicit $exec
|
221
|
15 S_CBRANCH_EXECZ %bb.2, implicit $exec
|
150
|
16
|
|
17 bb.1:
|
|
18 successors: %bb.2
|
|
19 $vgpr0 = V_MOV_B32_e32 0, implicit $exec
|
|
20 DBG_VALUE
|
|
21
|
|
22 bb.2:
|
|
23 $vgpr0 = V_MOV_B32_e32 1, implicit $exec
|
|
24
|
|
25 bb.3:
|
|
26 S_ENDPGM 0
|
|
27 ...
|
|
28
|