File tree 2 files changed +112
-0
lines changed
2 files changed +112
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ exports_files([
40
40
"llvm_function_samples_perf.data" ,
41
41
"loop_no_entry_no_exit.protobuf" ,
42
42
"multiple_cold_blocks.protobuf" ,
43
+ "nested_loop.protobuf" ,
43
44
"propeller_sample.protobuf" ,
44
45
"propeller_sample_1.bin" ,
45
46
"sample.bin" ,
Original file line number Diff line number Diff line change
1
+ ## CFG Proto for a function consisting of a nested loop.
2
+ ## Ordinals are intentionally out-of-order.
3
+ ##
4
+ ## [1] foo
5
+ ## |
6
+ ## |5
7
+ ## V
8
+ ## [4] ara.BB.foo <-----+
9
+ ## | |
10
+ ## 60 | |
11
+ ## V |
12
+ ## [2] a.BB.foo <--+ |
13
+ ## | | |
14
+ ## 600 | 550 | | 40
15
+ ## V | |
16
+ ## [5] aara.BB.foo ---+ |
17
+ ## | |
18
+ ## 55 | |
19
+ ## V |
20
+ ## [6] aaara.BB.foo -------+
21
+ ## |
22
+ ## 10 |
23
+ ## V
24
+ ## [3] ra.BB.foo
25
+ ##
26
+ cfg {
27
+ name: "foo"
28
+ function_index: 1
29
+ node {
30
+ bb_id: 0
31
+ size: 10
32
+ out_edges {
33
+ sink: {
34
+ function_index: 1
35
+ bb_index: 3
36
+ }
37
+ weight: 5
38
+ kind: BRANCH_OR_FALLTHROUGH
39
+ }
40
+ }
41
+ node {
42
+ bb_id: 1
43
+ size: 10
44
+ out_edges {
45
+ sink: {
46
+ function_index: 1
47
+ bb_index: 4
48
+ }
49
+ weight: 600
50
+ kind: BRANCH_OR_FALLTHROUGH
51
+ }
52
+ }
53
+ node {
54
+ bb_id: 2
55
+ size: 10
56
+ }
57
+ node {
58
+ bb_id: 3
59
+ size: 10
60
+ out_edges {
61
+ sink: {
62
+ function_index: 1
63
+ bb_index: 1
64
+ }
65
+ weight: 60
66
+ kind: BRANCH_OR_FALLTHROUGH
67
+ }
68
+ }
69
+
70
+ node {
71
+ bb_id: 4
72
+ size: 10
73
+ out_edges {
74
+ sink: {
75
+ function_index: 1
76
+ bb_index: 5
77
+ }
78
+ weight: 55
79
+ kind: BRANCH_OR_FALLTHROUGH
80
+ }
81
+ out_edges {
82
+ sink: {
83
+ function_index: 1
84
+ bb_index: 1
85
+ }
86
+ weight: 550
87
+ kind: BRANCH_OR_FALLTHROUGH
88
+ }
89
+ }
90
+ node {
91
+ bb_id: 5
92
+ size: 10
93
+ out_edges {
94
+ sink: {
95
+ function_index: 1
96
+ bb_index: 3
97
+ }
98
+ weight: 40
99
+ kind: BRANCH_OR_FALLTHROUGH
100
+ }
101
+ out_edges {
102
+ sink: {
103
+ function_index: 1
104
+ bb_index: 2
105
+ }
106
+ weight: 10
107
+ kind: BRANCH_OR_FALLTHROUGH
108
+ }
109
+ }
110
+
111
+ }
You can’t perform that action at this time.
0 commit comments