nop-fold.mir
2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc --mtriple=amdgcn--amdhsa -mcpu=fiji -run-pass=si-shrink-instructions %s -o - | FileCheck %s
---
name: merge_2_nop
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: merge_2_nop
; CHECK: S_NOP 1
S_NOP 0
S_NOP 0
...
---
name: merge_3_nop
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: merge_3_nop
; CHECK: S_NOP 2
S_NOP 0
S_NOP 0
S_NOP 0
...
---
name: merge_7_nop
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: merge_7_nop
; CHECK: S_NOP 6
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
...
---
name: merge_8_nop
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: merge_8_nop
; CHECK: S_NOP 7
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
...
---
name: merge_9_nop
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: merge_9_nop
; CHECK: S_NOP 7
; CHECK: S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
S_NOP 0
...
---
name: no_merge_impdef0
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: no_merge_impdef0
; CHECK: S_NOP 0, implicit-def $sgpr0
; CHECK: S_NOP 0
S_NOP 0, implicit-def $sgpr0
S_NOP 0
...
---
name: no_merge_impdef1
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: no_merge_impdef1
; CHECK: S_NOP 0
; CHECK: S_NOP 0, implicit-def $sgpr0
S_NOP 0
S_NOP 0, implicit-def $sgpr0
...
---
name: no_merge_impdef_both
tracksRegLiveness: true
body: |
bb.0:
; CHECK-LABEL: name: no_merge_impdef_both
; CHECK: S_NOP 0
; CHECK: S_NOP 0, implicit-def $sgpr0
S_NOP 0
S_NOP 0, implicit-def $sgpr0
...