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+
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
24
35...
46---
5- # CHECK-LABEL: MachineCycleInfo for function: empty
7+ # LEGACY-LABEL: MachineCycleInfo for function: empty
8+ # NPM-LABEL: name: empty
69name : empty
710alignment : 16
811tracksRegLiveness : true
@@ -15,7 +18,8 @@ body: |
1518
1619 ...
1720---
18- # CHECK-LABEL: MachineCycleInfo for function: simple
21+ # LEGACY-LABEL: MachineCycleInfo for function: simple
22+ # NPM-LABEL: name: simple
1923# CHECK: depth=1: entries(bb.1)
2024name : simple
2125alignment : 16
@@ -40,7 +44,8 @@ body: |
4044
4145 ...
4246---
43- # CHECK-LABEL: MachineCycleInfo for function: two_latches
47+ # LEGACY-LABEL: MachineCycleInfo for function: two_latches
48+ # NPM-LABEL: name: two_latches
4449# CHECK: depth=1: entries(bb.1) bb.2
4550name : two_latches
4651alignment : 16
@@ -72,7 +77,8 @@ body: |
7277
7378 ...
7479---
75- # CHECK-LABEL: MachineCycleInfo for function: nested_simple
80+ # LEGACY-LABEL: MachineCycleInfo for function: nested_simple
81+ # NPM-LABEL: name: nested_simple
7682# CHECK: depth=1: entries(bb.1) bb.3 bb.2
7783# CHECK: depth=2: entries(bb.2)
7884name : nested_simple
@@ -108,7 +114,8 @@ body: |
108114
109115 ...
110116---
111- # 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
112119# CHECK: depth=1: entries(bb.1) bb.2 bb.3
113120# CHECK: depth=2: entries(bb.2) bb.3
114121name : nested_outer_latch_in_inner_loop
@@ -144,7 +151,8 @@ body: |
144151
145152 ...
146153---
147- # CHECK-LABEL: MachineCycleInfo for function: sibling_loops
154+ # LEGACY-LABEL: MachineCycleInfo for function: sibling_loops
155+ # NPM-LABEL: name: sibling_loops
148156# CHECK: depth=1: entries(bb.1)
149157# CHECK: depth=1: entries(bb.2)
150158name : sibling_loops
@@ -181,7 +189,8 @@ body: |
181189
182190 ...
183191---
184- # CHECK-LABEL: MachineCycleInfo for function: serial_loops
192+ # LEGACY-LABEL: MachineCycleInfo for function: serial_loops
193+ # NPM-LABEL: name: serial_loops
185194# CHECK: depth=1: entries(bb.2)
186195# CHECK: depth=1: entries(bb.1)
187196name : serial_loops
@@ -214,7 +223,8 @@ body: |
214223
215224 ...
216225---
217- # CHECK-LABEL: MachineCycleInfo for function: nested_sibling_loops
226+ # LEGACY-LABEL: MachineCycleInfo for function: nested_sibling_loops
227+ # NPM-LABEL: name: nested_sibling_loops
218228# CHECK: depth=1: entries(bb.1) bb.4 bb.5 bb.3 bb.2
219229# CHECK: depth=2: entries(bb.4) bb.5
220230# CHECK: depth=2: entries(bb.2)
@@ -277,7 +287,8 @@ body: |
277287
278288 ...
279289---
280- # CHECK-LABEL: MachineCycleInfo for function: deeper_nest
290+ # LEGACY-LABEL: MachineCycleInfo for function: deeper_nest
291+ # NPM-LABEL: name: deeper_nest
281292# CHECK: depth=1: entries(bb.1) bb.5 bb.2 bb.3 bb.4
282293# CHECK: depth=2: entries(bb.2) bb.3 bb.4
283294# CHECK: depth=3: entries(bb.3) bb.4
@@ -324,7 +335,8 @@ body: |
324335
325336 ...
326337---
327- # CHECK-LABEL: MachineCycleInfo for function: irreducible_basic
338+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_basic
339+ # NPM-LABEL: name: irreducible_basic
328340# CHECK: depth=1: entries(bb.2 bb.1)
329341name : irreducible_basic
330342alignment : 16
@@ -360,7 +372,8 @@ body: |
360372
361373 ...
362374---
363- # CHECK-LABEL: MachineCycleInfo for function: irreducible_mess
375+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_mess
376+ # NPM-LABEL: name: irreducible_mess
364377# CHECK: depth=1: entries(bb.2 bb.1) bb.6 bb.5 bb.3 bb.4
365378# CHECK: depth=2: entries(bb.5 bb.3 bb.1) bb.4
366379# CHECK: depth=3: entries(bb.3 bb.1) bb.4
@@ -436,7 +449,8 @@ body: |
436449
437450 ...
438451---
439- # 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
440454# CHECK: depth=1: entries(bb.2 bb.7 bb.4) bb.6 bb.5 bb.3
441455name : irreducible_into_simple_cycle
442456alignment : 16
@@ -495,7 +509,8 @@ body: |
495509
496510 ...
497511---
498- # CHECK-LABEL: MachineCycleInfo for function: irreducible_mountain_bug
512+ # LEGACY-LABEL: MachineCycleInfo for function: irreducible_mountain_bug
513+ # NPM-LABEL: name: irreducible_mountain_bug
499514# CHECK: depth=1: entries(bb.6) bb.11 bb.10 bb.8 bb.7 bb.9 bb.12
500515# CHECK: depth=2: entries(bb.10 bb.7) bb.8 bb.9
501516# CHECK: depth=3: entries(bb.8 bb.7) bb.9
0 commit comments