llvm.org GIT mirror llvm / 193b585
New test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36416 91177308-0d34-0410-b5e6-96231b3b80d8 Devang Patel 12 years ago
1 changed file(s) with 309 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ;RUN: llvm-upgrade < %s | llvm-as | opt -codegenprepare -disable-output
1
2 void @foo() {
3 entry:
4 br i1 false, label %cond_next31, label %cond_true
5
6 cond_true: ; preds = %entry
7 br i1 false, label %cond_true19, label %cond_next31
8
9 cond_true19: ; preds = %cond_true
10 br i1 false, label %bb510, label %cond_next31
11
12 cond_next31: ; preds = %cond_true19, %cond_true, %entry
13 br i1 false, label %cond_true61, label %cond_next78
14
15 cond_true61: ; preds = %cond_next31
16 br label %cond_next78
17
18 cond_next78: ; preds = %cond_true61, %cond_next31
19 br i1 false, label %cond_true93, label %bb.preheader
20
21 cond_true93: ; preds = %cond_next78
22 br label %bb.preheader
23
24 bb.preheader: ; preds = %cond_true93, %cond_next78
25 %iftmp.11.0.ph.ph = phi i16 [ 0, %cond_true93 ], [ 0, %cond_next78 ] ; [#uses=1]
26 br label %bb
27
28 bb: ; preds = %cond_next499, %bb.preheader
29 %n.1 = phi i16 [ %iftmp.11.0.ph.ph, %cond_next499 ], [ 0, %bb.preheader ] ; [#uses=0]
30 br i1 false, label %bb148.preheader, label %bb493
31
32 bb148.preheader: ; preds = %bb
33 br label %bb148
34
35 bb148: ; preds = %cond_next475, %bb148.preheader
36 br i1 false, label %cond_next175, label %bb184
37
38 cond_next175: ; preds = %bb148
39 br i1 false, label %bb184, label %bb185
40
41 bb184: ; preds = %cond_next175, %bb148
42 br label %bb185
43
44 bb185: ; preds = %bb184, %cond_next175
45 br i1 false, label %bb420.preheader, label %cond_true198
46
47 bb420.preheader: ; preds = %bb185
48 br label %bb420
49
50 cond_true198: ; preds = %bb185
51 br i1 false, label %bb294, label %cond_next208
52
53 cond_next208: ; preds = %cond_true198
54 br i1 false, label %cond_next249, label %cond_true214
55
56 cond_true214: ; preds = %cond_next208
57 br i1 false, label %bb294, label %cond_next262
58
59 cond_next249: ; preds = %cond_next208
60 br i1 false, label %bb294, label %cond_next262
61
62 cond_next262: ; preds = %cond_next249, %cond_true214
63 br label %bb269
64
65 bb269: ; preds = %cond_next285, %cond_next262
66 br i1 false, label %cond_next285, label %cond_true279
67
68 cond_true279: ; preds = %bb269
69 br label %cond_next285
70
71 cond_next285: ; preds = %cond_true279, %bb269
72 br i1 false, label %bb269, label %cond_next446.loopexit
73
74 bb294: ; preds = %cond_next249, %cond_true214, %cond_true198
75 br i1 false, label %cond_next336, label %cond_true301
76
77 cond_true301: ; preds = %bb294
78 br i1 false, label %cond_false398, label %cond_true344
79
80 cond_next336: ; preds = %bb294
81 br i1 false, label %cond_false398, label %cond_true344
82
83 cond_true344: ; preds = %cond_next336, %cond_true301
84 br i1 false, label %cond_false381, label %cond_true351
85
86 cond_true351: ; preds = %cond_true344
87 br label %cond_next387
88
89 cond_false381: ; preds = %cond_true344
90 br label %cond_next387
91
92 cond_next387: ; preds = %cond_false381, %cond_true351
93 br label %cond_next401
94
95 cond_false398: ; preds = %cond_next336, %cond_true301
96 br label %cond_next401
97
98 cond_next401: ; preds = %cond_false398, %cond_next387
99 br i1 false, label %cond_next475, label %cond_true453
100
101 bb420: ; preds = %cond_next434, %bb420.preheader
102 br i1 false, label %cond_next434, label %cond_true428
103
104 cond_true428: ; preds = %bb420
105 br label %cond_next434
106
107 cond_next434: ; preds = %cond_true428, %bb420
108 br i1 false, label %bb420, label %cond_next446.loopexit1
109
110 cond_next446.loopexit: ; preds = %cond_next285
111 br label %cond_next446
112
113 cond_next446.loopexit1: ; preds = %cond_next434
114 br label %cond_next446
115
116 cond_next446: ; preds = %cond_next446.loopexit1, %cond_next446.loopexit
117 br i1 false, label %cond_next475, label %cond_true453
118
119 cond_true453: ; preds = %cond_next446, %cond_next401
120 br i1 false, label %cond_true458, label %cond_next475
121
122 cond_true458: ; preds = %cond_true453
123 br label %cond_next475
124
125 cond_next475: ; preds = %cond_true458, %cond_true453, %cond_next446, %cond_next401
126 br i1 false, label %bb493.loopexit, label %bb148
127
128 bb493.loopexit: ; preds = %cond_next475
129 br label %bb493
130
131 bb493: ; preds = %bb493.loopexit, %bb
132 br i1 false, label %cond_next499, label %bb510.loopexit
133
134 cond_next499: ; preds = %bb493
135 br label %bb
136
137 bb510.loopexit: ; preds = %bb493
138 br label %bb510
139
140 bb510: ; preds = %bb510.loopexit, %cond_true19
141 br i1 false, label %cond_next524, label %cond_true517
142
143 cond_true517: ; preds = %bb510
144 br label %cond_next524
145
146 cond_next524: ; preds = %cond_true517, %bb510
147 br i1 false, label %cond_next540, label %cond_true533
148
149 cond_true533: ; preds = %cond_next524
150 br label %cond_next540
151
152 cond_next540: ; preds = %cond_true533, %cond_next524
153 br i1 false, label %cond_true554, label %cond_next560
154
155 cond_true554: ; preds = %cond_next540
156 br label %cond_next560
157
158 cond_next560: ; preds = %cond_true554, %cond_next540
159 br i1 false, label %cond_true566, label %cond_next572
160
161 cond_true566: ; preds = %cond_next560
162 br label %cond_next572
163
164 cond_next572: ; preds = %cond_true566, %cond_next560
165 br i1 false, label %bb608.preheader, label %bb791.preheader
166
167 bb608.preheader: ; preds = %cond_next797.us, %cond_next572
168 br label %bb608
169
170 bb608: ; preds = %cond_next771, %bb608.preheader
171 br i1 false, label %cond_false627, label %cond_true613
172
173 cond_true613: ; preds = %bb608
174 br label %cond_next640
175
176 cond_false627: ; preds = %bb608
177 br label %cond_next640
178
179 cond_next640: ; preds = %cond_false627, %cond_true613
180 br i1 false, label %cond_true653, label %cond_next671
181
182 cond_true653: ; preds = %cond_next640
183 br label %cond_next671
184
185 cond_next671: ; preds = %cond_true653, %cond_next640
186 br i1 false, label %cond_true683, label %cond_next724
187
188 cond_true683: ; preds = %cond_next671
189 br i1 false, label %cond_next724, label %L1
190
191 cond_next724: ; preds = %cond_true683, %cond_next671
192 br i1 false, label %cond_true735, label %L1
193
194 cond_true735: ; preds = %cond_next724
195 br label %L1
196
197 L1: ; preds = %cond_true735, %cond_next724, %cond_true683
198 br i1 false, label %cond_true745, label %cond_next771
199
200 cond_true745: ; preds = %L1
201 br label %cond_next771
202
203 cond_next771: ; preds = %cond_true745, %L1
204 br i1 false, label %bb608, label %bb791.preheader.loopexit
205
206 bb791.preheader.loopexit: ; preds = %cond_next771
207 br label %bb791.preheader
208
209 bb791.preheader: ; preds = %bb791.preheader.loopexit, %cond_next572
210 br i1 false, label %cond_next797.us, label %bb809.split
211
212 cond_next797.us: ; preds = %bb791.preheader
213 br label %bb608.preheader
214
215 bb809.split: ; preds = %bb791.preheader
216 br i1 false, label %cond_next827, label %cond_true820
217
218 cond_true820: ; preds = %bb809.split
219 br label %cond_next827
220
221 cond_next827: ; preds = %cond_true820, %bb809.split
222 br i1 false, label %cond_true833, label %cond_next840
223
224 cond_true833: ; preds = %cond_next827
225 br label %cond_next840
226
227 cond_next840: ; preds = %cond_true833, %cond_next827
228 br i1 false, label %bb866, label %bb1245
229
230 bb866: ; preds = %bb1239, %cond_next840
231 br i1 false, label %cond_true875, label %bb911
232
233 cond_true875: ; preds = %bb866
234 br label %cond_next1180
235
236 bb911: ; preds = %bb866
237 switch i32 0, label %bb1165 [
238 i32 0, label %bb915
239 i32 1, label %bb932
240 i32 2, label %bb941
241 i32 3, label %bb1029
242 i32 4, label %bb1036
243 i32 5, label %bb1069
244 i32 6, label %L3
245 ]
246
247 bb915: ; preds = %cond_next1171, %bb911
248 br i1 false, label %cond_next1171, label %cond_next1180
249
250 bb932: ; preds = %cond_next1171, %bb911
251 br label %L1970
252
253 bb941: ; preds = %cond_next1171, %bb911
254 br label %L1970
255
256 L1970: ; preds = %bb941, %bb932
257 br label %bb1165
258
259 bb1029: ; preds = %cond_next1171, %bb911
260 br label %L4
261
262 bb1036: ; preds = %cond_next1171, %bb911
263 br label %L4
264
265 bb1069: ; preds = %cond_next1171, %bb911
266 br i1 false, label %cond_next1121, label %cond_true1108
267
268 L3: ; preds = %cond_next1171, %bb911
269 br i1 false, label %cond_next1121, label %cond_true1108
270
271 cond_true1108: ; preds = %L3, %bb1069
272 br label %L4
273
274 cond_next1121: ; preds = %L3, %bb1069
275 br label %L4
276
277 L4: ; preds = %cond_next1121, %cond_true1108, %bb1036, %bb1029
278 br label %bb1165
279
280 bb1165: ; preds = %cond_next1171, %L4, %L1970, %bb911
281 br i1 false, label %cond_next1171, label %cond_next1180
282
283 cond_next1171: ; preds = %bb1165, %bb915
284 switch i32 0, label %bb1165 [
285 i32 0, label %bb915
286 i32 1, label %bb932
287 i32 2, label %bb941
288 i32 3, label %bb1029
289 i32 4, label %bb1036
290 i32 5, label %bb1069
291 i32 6, label %L3
292 ]
293
294 cond_next1180: ; preds = %bb1165, %bb915, %cond_true875
295 br label %bb1239
296
297 bb1239: ; preds = %cond_next1251, %cond_next1180
298 br i1 false, label %bb866, label %bb1245
299
300 bb1245: ; preds = %bb1239, %cond_next840
301 br i1 false, label %cond_next1251, label %bb1257
302
303 cond_next1251: ; preds = %bb1245
304 br label %bb1239
305
306 bb1257: ; preds = %bb1245
307 ret void
308 }