1
- # RUN: llc -mtriple=x86_64-unknown-linux-gnu -run-pass=print-machine-cycles -o - %s 2>&1 | FileCheck %s
1
+ # RUN: llc -mtriple=x86_64-unknown-linux-gnu -run-pass=print-machine-cycles -o - %s 2>&1 | FileCheck %s --check-prefixes=LEGACY,CHECK
2
2
3
- # RUN: llc -mtriple=x86_64-unknown-linux-gnu -passes="print<machine-cycles>" -o - %s 2>&1 | FileCheck %s
3
+ # RUN: llc -mtriple=x86_64-unknown-linux-gnu -passes="machine-function( print,print <machine-cycles>) " -o - %s 2>&1 | FileCheck %s --check-prefixes=NPM,CHECK
4
4
5
5
...
6
6
---
7
- # CHECK-LABEL: MachineCycleInfo for function: empty
7
+ # LEGACY-LABEL: MachineCycleInfo for function: empty
8
+ # NPM-LABEL: name: empty
8
9
name : empty
9
10
alignment : 16
10
11
tracksRegLiveness : true
@@ -17,7 +18,8 @@ body: |
17
18
18
19
...
19
20
---
20
- # CHECK-LABEL: MachineCycleInfo for function: simple
21
+ # LEGACY-LABEL: MachineCycleInfo for function: simple
22
+ # NPM-LABEL: name: simple
21
23
# CHECK: depth=1: entries(bb.1)
22
24
name : simple
23
25
alignment : 16
@@ -42,7 +44,8 @@ body: |
42
44
43
45
...
44
46
---
45
- # CHECK-LABEL: MachineCycleInfo for function: two_latches
47
+ # LEGACY-LABEL: MachineCycleInfo for function: two_latches
48
+ # NPM-LABEL: name: two_latches
46
49
# CHECK: depth=1: entries(bb.1) bb.2
47
50
name : two_latches
48
51
alignment : 16
@@ -74,7 +77,8 @@ body: |
74
77
75
78
...
76
79
---
77
- # CHECK-LABEL: MachineCycleInfo for function: nested_simple
80
+ # LEGACY-LABEL: MachineCycleInfo for function: nested_simple
81
+ # NPM-LABEL: name: nested_simple
78
82
# CHECK: depth=1: entries(bb.1) bb.3 bb.2
79
83
# CHECK: depth=2: entries(bb.2)
80
84
name : nested_simple
@@ -110,7 +114,8 @@ body: |
110
114
111
115
...
112
116
---
113
- # CHECK-LABEL: MachineCycleInfo for function: nested_outer_latch_in_inner_loop
117
+ # LEGACY-LABEL: MachineCycleInfo for function: nested_outer_latch_in_inner_loop
118
+ # NPM-LABEL: name: nested_outer_latch_in_inner_loop
114
119
# CHECK: depth=1: entries(bb.1) bb.2 bb.3
115
120
# CHECK: depth=2: entries(bb.2) bb.3
116
121
name : nested_outer_latch_in_inner_loop
@@ -146,7 +151,8 @@ body: |
146
151
147
152
...
148
153
---
149
- # CHECK-LABEL: MachineCycleInfo for function: sibling_loops
154
+ # LEGACY-LABEL: MachineCycleInfo for function: sibling_loops
155
+ # NPM-LABEL: name: sibling_loops
150
156
# CHECK: depth=1: entries(bb.1)
151
157
# CHECK: depth=1: entries(bb.2)
152
158
name : sibling_loops
@@ -183,7 +189,8 @@ body: |
183
189
184
190
...
185
191
---
186
- # CHECK-LABEL: MachineCycleInfo for function: serial_loops
192
+ # LEGACY-LABEL: MachineCycleInfo for function: serial_loops
193
+ # NPM-LABEL: name: serial_loops
187
194
# CHECK: depth=1: entries(bb.2)
188
195
# CHECK: depth=1: entries(bb.1)
189
196
name : serial_loops
@@ -216,7 +223,8 @@ body: |
216
223
217
224
...
218
225
---
219
- # CHECK-LABEL: MachineCycleInfo for function: nested_sibling_loops
226
+ # LEGACY-LABEL: MachineCycleInfo for function: nested_sibling_loops
227
+ # NPM-LABEL: name: nested_sibling_loops
220
228
# CHECK: depth=1: entries(bb.1) bb.4 bb.5 bb.3 bb.2
221
229
# CHECK: depth=2: entries(bb.4) bb.5
222
230
# CHECK: depth=2: entries(bb.2)
@@ -279,7 +287,8 @@ body: |
279
287
280
288
...
281
289
---
282
- # CHECK-LABEL: MachineCycleInfo for function: deeper_nest
290
+ # LEGACY-LABEL: MachineCycleInfo for function: deeper_nest
291
+ # NPM-LABEL: name: deeper_nest
283
292
# CHECK: depth=1: entries(bb.1) bb.5 bb.2 bb.3 bb.4
284
293
# CHECK: depth=2: entries(bb.2) bb.3 bb.4
285
294
# CHECK: depth=3: entries(bb.3) bb.4
@@ -326,7 +335,8 @@ body: |
326
335
327
336
...
328
337
---
329
- # CHECK-LABEL: MachineCycleInfo for function: irreducible_basic
338
+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_basic
339
+ # NPM-LABEL: name: irreducible_basic
330
340
# CHECK: depth=1: entries(bb.2 bb.1)
331
341
name : irreducible_basic
332
342
alignment : 16
@@ -362,7 +372,8 @@ body: |
362
372
363
373
...
364
374
---
365
- # CHECK-LABEL: MachineCycleInfo for function: irreducible_mess
375
+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_mess
376
+ # NPM-LABEL: name: irreducible_mess
366
377
# CHECK: depth=1: entries(bb.2 bb.1) bb.6 bb.5 bb.3 bb.4
367
378
# CHECK: depth=2: entries(bb.5 bb.3 bb.1) bb.4
368
379
# CHECK: depth=3: entries(bb.3 bb.1) bb.4
@@ -438,7 +449,8 @@ body: |
438
449
439
450
...
440
451
---
441
- # CHECK-LABEL: MachineCycleInfo for function: irreducible_into_simple_cycle
452
+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_into_simple_cycle
453
+ # NPM-LABEL: name: irreducible_into_simple_cycle
442
454
# CHECK: depth=1: entries(bb.2 bb.7 bb.4) bb.6 bb.5 bb.3
443
455
name : irreducible_into_simple_cycle
444
456
alignment : 16
@@ -497,7 +509,8 @@ body: |
497
509
498
510
...
499
511
---
500
- # CHECK-LABEL: MachineCycleInfo for function: irreducible_mountain_bug
512
+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_mountain_bug
513
+ # NPM-LABEL: name: irreducible_mountain_bug
501
514
# CHECK: depth=1: entries(bb.6) bb.11 bb.10 bb.8 bb.7 bb.9 bb.12
502
515
# CHECK: depth=2: entries(bb.10 bb.7) bb.8 bb.9
503
516
# CHECK: depth=3: entries(bb.8 bb.7) bb.9
0 commit comments