File tree 2 files changed +33
-47
lines changed
2 files changed +33
-47
lines changed Original file line number Diff line number Diff line change @@ -1029,12 +1029,12 @@ void Relooper::SetAsmJSMode(int On) {
1029
1029
void DebugDump (BlockSet &Blocks, const char *prefix) {
1030
1030
if (prefix) printf (" %s " , prefix);
1031
1031
for (BlockSet::iterator iter = Blocks.begin (); iter != Blocks.end (); iter++) {
1032
- printf ( " %d: \n " , (* iter)-> Id ) ;
1033
- for (BlockBranchMap::iterator iter2 = (*iter)-> BranchesOut . begin (); iter2 != (*iter)-> BranchesOut . end (); iter2++) {
1034
- printf ( " OUT %d \n " , iter2-> first -> Id );
1035
- }
1036
- for (BlockSet::iterator iter2 = (*iter)-> BranchesIn . begin (); iter2 != (*iter)-> BranchesIn . end (); iter2++) {
1037
- printf ( " IN %d \n " , (*iter2)-> Id );
1032
+ Block *Curr = * iter;
1033
+ printf ( " %d: \n " , Curr-> Id );
1034
+ for (BlockBranchMap::iterator iter2 = Curr-> BranchesOut . begin (); iter2 != Curr-> BranchesOut . end (); iter2++) {
1035
+ Block *Other = iter2-> first ;
1036
+ printf ( " -> %d \n " , Other-> Id );
1037
+ assert (Other-> BranchesIn . find (Curr) != Other-> BranchesIn . end () );
1038
1038
}
1039
1039
}
1040
1040
}
Original file line number Diff line number Diff line change @@ -34,86 +34,72 @@ int main() {
34
34
// Process() called
35
35
// Process() running
36
36
blocks : 1:
37
- OUT 2
38
- OUT 4
37
+ -> 2
38
+ -> 4
39
39
2:
40
- OUT 3
41
- OUT 4
42
- IN 1
40
+ -> 3
41
+ -> 4
43
42
3:
44
- OUT 4
45
- IN 2
43
+ -> 4
46
44
4:
47
- IN 1
48
- IN 2
49
- IN 3
50
45
entries: 1:
51
- OUT 2
52
- OUT 4
46
+ -> 2
47
+ -> 4
53
48
// creating simple block with block #1
54
49
// Solipsizing branches into 2
55
50
relevant to solipsize: 1:
56
- OUT 2
57
- OUT 4
51
+ -> 2
52
+ -> 4
58
53
// eliminated branch from 1
59
54
// Solipsizing branches into 4
60
55
relevant to solipsize: 1:
61
- OUT 4
56
+ -> 4
62
57
// eliminated branch from 1
63
58
// Process() running
64
59
blocks : 2:
65
- OUT 3
66
- OUT 4
60
+ -> 3
61
+ -> 4
67
62
3:
68
- OUT 4
69
- IN 2
63
+ -> 4
70
64
4:
71
- IN 2
72
- IN 3
73
65
entries: 2:
74
- OUT 3
75
- OUT 4
66
+ -> 3
67
+ -> 4
76
68
4:
77
- IN 2
78
- IN 3
79
69
// Investigated independent groups:
80
70
group: 2:
81
- OUT 3
82
- OUT 4
71
+ -> 3
72
+ -> 4
83
73
3:
84
- OUT 4
85
- IN 2
74
+ -> 4
86
75
// Independent groups: 1
87
76
// Handleable independent groups: 1
88
77
// creating multiple block with 1 inner groups
89
78
// multiple group with entry 2:
90
79
2:
91
- OUT 3
92
- OUT 4
80
+ -> 3
81
+ -> 4
93
82
3:
94
- OUT 4
95
- IN 2
83
+ -> 4
96
84
// Solipsizing branches into 4
97
85
relevant to solipsize: 2:
98
- OUT 3
99
- OUT 4
86
+ -> 3
87
+ -> 4
100
88
3:
101
- OUT 4
102
- IN 2
89
+ -> 4
103
90
// eliminated branch from 2
104
91
// eliminated branch from 3
105
92
// Process() called
106
93
// Process() running
107
94
blocks : 2:
108
- OUT 3
95
+ -> 3
109
96
3:
110
- IN 2
111
97
entries: 2:
112
- OUT 3
98
+ -> 3
113
99
// creating simple block with block #2
114
100
// Solipsizing branches into 3
115
101
relevant to solipsize: 2:
116
- OUT 3
102
+ -> 3
117
103
// eliminated branch from 2
118
104
// Process() running
119
105
blocks : 3:
You can’t perform that action at this time.
0 commit comments