blob: 8429e7c45aa3fb7613688976695a6b37d9149fda [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -inline -prune-eh -disable-output
2; PR827
3
4%_ZTV8CRjii = internal global [1 x int (...)*] [ int (...)* %_ZN8CRjii12NlFeeEPN5Jr7sE ] ; <[1 x int (...)*]*> [#uses=0]
5
6implementation ; Functions:
7
8internal int %_ZN8CRjii12NlFeeEPN5Jr7sE(...) {
9entry:
10 br bool false, label %cond_true, label %cond_false179
11
12cond_true: ; preds = %entry
13 br label %bb9
14
15bb: ; preds = %cond_true14
16 br label %bb9
17
18bb9: ; preds = %bb, %cond_true
19 br bool false, label %cond_true14, label %cond_false
20
21cond_true14: ; preds = %bb9
22 br label %bb
23
24cond_false: ; preds = %bb9
25 br label %bb15
26
27cond_next: ; No predecessors!
28 br label %bb15
29
30bb15: ; preds = %cond_next, %cond_false
31 br label %bb24
32
33bb17: ; preds = %cond_true29
34 br label %bb24
35
36bb24: ; preds = %bb17, %bb15
37 br bool false, label %cond_true29, label %cond_false30
38
39cond_true29: ; preds = %bb24
40 br label %bb17
41
42cond_false30: ; preds = %bb24
43 br label %bb32
44
45cond_next31: ; No predecessors!
46 br label %bb32
47
48bb32: ; preds = %cond_next31, %cond_false30
49 br label %bb41
50
51bb34: ; preds = %cond_true46
52 br label %bb41
53
54bb41: ; preds = %bb34, %bb32
55 br bool false, label %cond_true46, label %cond_false47
56
57cond_true46: ; preds = %bb41
58 br label %bb34
59
60cond_false47: ; preds = %bb41
61 br label %bb49
62
63cond_next48: ; No predecessors!
64 br label %bb49
65
66bb49: ; preds = %cond_next48, %cond_false47
67 br label %bb58
68
69bb51: ; preds = %cond_true63
70 br label %bb58
71
72bb58: ; preds = %bb51, %bb49
73 br bool false, label %cond_true63, label %cond_false64
74
75cond_true63: ; preds = %bb58
76 br label %bb51
77
78cond_false64: ; preds = %bb58
79 br label %bb66
80
81cond_next65: ; No predecessors!
82 br label %bb66
83
84bb66: ; preds = %cond_next65, %cond_false64
85 br label %bb76
86
87bb68: ; preds = %cond_true81
88 br label %bb76
89
90bb76: ; preds = %bb68, %bb66
91 br bool false, label %cond_true81, label %cond_false82
92
93cond_true81: ; preds = %bb76
94 br label %bb68
95
96cond_false82: ; preds = %bb76
97 br label %bb84
98
99cond_next83: ; No predecessors!
100 br label %bb84
101
102bb84: ; preds = %cond_next83, %cond_false82
103 br label %bb94
104
105bb86: ; preds = %cond_true99
106 br label %bb94
107
108bb94: ; preds = %bb86, %bb84
109 br bool false, label %cond_true99, label %cond_false100
110
111cond_true99: ; preds = %bb94
112 br label %bb86
113
114cond_false100: ; preds = %bb94
115 br label %bb102
116
117cond_next101: ; No predecessors!
118 br label %bb102
119
120bb102: ; preds = %cond_next101, %cond_false100
121 br label %bb112
122
123bb104: ; preds = %cond_true117
124 br label %bb112
125
126bb112: ; preds = %bb104, %bb102
127 br bool false, label %cond_true117, label %cond_false118
128
129cond_true117: ; preds = %bb112
130 br label %bb104
131
132cond_false118: ; preds = %bb112
133 br label %bb120
134
135cond_next119: ; No predecessors!
136 br label %bb120
137
138bb120: ; preds = %cond_next119, %cond_false118
139 br label %bb130
140
141bb122: ; preds = %cond_true135
142 br label %bb130
143
144bb130: ; preds = %bb122, %bb120
145 br bool false, label %cond_true135, label %cond_false136
146
147cond_true135: ; preds = %bb130
148 br label %bb122
149
150cond_false136: ; preds = %bb130
151 br label %bb138
152
153cond_next137: ; No predecessors!
154 br label %bb138
155
156bb138: ; preds = %cond_next137, %cond_false136
157 br label %bb148
158
159bb140: ; preds = %cond_true153
160 call fastcc void %_Zjrf1( )
161 br label %bb148
162
163bb148: ; preds = %bb140, %bb138
164 br bool false, label %cond_true153, label %cond_false154
165
166cond_true153: ; preds = %bb148
167 br label %bb140
168
169cond_false154: ; preds = %bb148
170 br label %bb156
171
172cond_next155: ; No predecessors!
173 br label %bb156
174
175bb156: ; preds = %cond_next155, %cond_false154
176 br label %bb166
177
178bb158: ; preds = %cond_true171
179 br label %bb166
180
181bb166: ; preds = %bb158, %bb156
182 br bool false, label %cond_true171, label %cond_false172
183
184cond_true171: ; preds = %bb166
185 br label %bb158
186
187cond_false172: ; preds = %bb166
188 br label %bb174
189
190cond_next173: ; No predecessors!
191 br label %bb174
192
193bb174: ; preds = %cond_next173, %cond_false172
194 br label %cleanup
195
196cleanup: ; preds = %bb174
197 br label %finally
198
199finally: ; preds = %cleanup
200 br label %cond_next180
201
202cond_false179: ; preds = %entry
203 br label %cond_next180
204
205cond_next180: ; preds = %cond_false179, %finally
206 br label %return
207
208return: ; preds = %cond_next180
209 ret int 0
210}
211
212internal fastcc void %_Zjrf2() {
213entry:
214 br label %bb3
215
216bb: ; preds = %cond_true
217 br label %bb3
218
219bb3: ; preds = %bb, %entry
220 %tmp5 = load ubyte** null ; <ubyte*> [#uses=1]
221 %tmp = setne ubyte* null, %tmp5 ; <bool> [#uses=1]
222 br bool %tmp, label %cond_true, label %cond_false
223
224cond_true: ; preds = %bb3
225 br label %bb
226
227cond_false: ; preds = %bb3
228 br label %bb6
229
230cond_next: ; No predecessors!
231 br label %bb6
232
233bb6: ; preds = %cond_next, %cond_false
234 br label %return
235
236return: ; preds = %bb6
237 ret void
238}
239
240internal fastcc void %_Zjrf3() {
241entry:
242 call fastcc void %_Zjrf2( )
243 br label %return
244
245return: ; preds = %entry
246 ret void
247}
248
249internal fastcc void %_Zjrf4() {
250entry:
251 br label %bb6
252
253bb: ; preds = %cond_true
254 br label %bb6
255
256bb6: ; preds = %bb, %entry
257 br bool false, label %cond_true, label %cond_false
258
259cond_true: ; preds = %bb6
260 br label %bb
261
262cond_false: ; preds = %bb6
263 br label %bb8
264
265cond_next: ; No predecessors!
266 br label %bb8
267
268bb8: ; preds = %cond_next, %cond_false
269 br bool false, label %cond_true9, label %cond_false12
270
271cond_true9: ; preds = %bb8
272 call fastcc void %_Zjrf3( )
273 br label %cond_next13
274
275cond_false12: ; preds = %bb8
276 br label %cond_next13
277
278cond_next13: ; preds = %cond_false12, %cond_true9
279 br label %return
280
281return: ; preds = %cond_next13
282 ret void
283}
284
285internal fastcc void %_Zjrf5() {
286entry:
287 call fastcc void %_Zjrf4( )
288 br label %return
289
290return: ; preds = %entry
291 ret void
292}
293
294internal fastcc void %_Zjrf6() {
295entry:
296 call fastcc void %_Zjrf5( )
297 br label %return
298
299return: ; preds = %entry
300 ret void
301}
302
303internal fastcc void %_Zjrf7() {
304entry:
305 br label %cleanup
306
307cleanup: ; preds = %entry
308 br label %finally
309
310finally: ; preds = %cleanup
311 call fastcc void %_Zjrf6( )
312 br label %cleanup9
313
314cleanup9: ; preds = %finally
315 br label %finally8
316
317finally8: ; preds = %cleanup9
318 br label %cleanup11
319
320cleanup11: ; preds = %finally8
321 br label %finally10
322
323finally10: ; preds = %cleanup11
324 br label %finally23
325
326finally23: ; preds = %finally10
327 br label %return
328
329return: ; preds = %finally23
330 ret void
331}
332
333internal fastcc void %_Zjrf11() {
334entry:
335 br label %bb7
336
337bb: ; preds = %cond_true
338 br label %bb7
339
340bb7: ; preds = %bb, %entry
341 br bool false, label %cond_true, label %cond_false
342
343cond_true: ; preds = %bb7
344 br label %bb
345
346cond_false: ; preds = %bb7
347 br label %bb9
348
349cond_next: ; No predecessors!
350 br label %bb9
351
352bb9: ; preds = %cond_next, %cond_false
353 br label %return
354 ; No predecessors!
355 br bool false, label %cond_true12, label %cond_false15
356
357cond_true12: ; preds = %0
358 call fastcc void %_Zjrf3( )
359 br label %cond_next16
360
361cond_false15: ; preds = %0
362 br label %cond_next16
363
364cond_next16: ; preds = %cond_false15, %cond_true12
365 br label %return
366
367return: ; preds = %cond_next16, %bb9
368 ret void
369}
370
371internal fastcc void %_Zjrf9() {
372entry:
373 call fastcc void %_Zjrf11( )
374 br label %return
375
376return: ; preds = %entry
377 ret void
378}
379
380internal fastcc void %_Zjrf10() {
381entry:
382 call fastcc void %_Zjrf9( )
383 br label %return
384
385return: ; preds = %entry
386 ret void
387}
388
389internal fastcc void %_Zjrf8() {
390entry:
391 br bool false, label %cond_true, label %cond_false201
392
393cond_true: ; preds = %entry
394 br bool false, label %cond_true36, label %cond_false
395
396cond_true36: ; preds = %cond_true
397 br label %cleanup
398
399cleanup: ; preds = %cond_true36
400 br label %finally
401
402finally: ; preds = %cleanup
403 br label %cond_next189
404
405cond_false: ; preds = %cond_true
406 br bool false, label %cond_true99, label %cond_false137
407
408cond_true99: ; preds = %cond_false
409 br label %cleanup136
410
411cleanup136: ; preds = %cond_true99
412 br label %finally135
413
414finally135: ; preds = %cleanup136
415 br label %cond_next
416
417cond_false137: ; preds = %cond_false
418 call fastcc void %_Zjrf10( )
419 br label %cleanup188
420
421cleanup188: ; preds = %cond_false137
422 br label %finally187
423
424finally187: ; preds = %cleanup188
425 br label %cond_next
426
427cond_next: ; preds = %finally187, %finally135
428 br label %cond_next189
429
430cond_next189: ; preds = %cond_next, %finally
431 br label %cond_next202
432
433cond_false201: ; preds = %entry
434 br label %cond_next202
435
436cond_next202: ; preds = %cond_false201, %cond_next189
437 br label %return
438
439return: ; preds = %cond_next202
440 ret void
441}
442
443internal fastcc void %_Zjrf1() {
444entry:
445 br label %bb492
446
447bb: ; preds = %cond_true499
448 br label %cleanup
449
450cleanup: ; preds = %bb
451 br label %finally
452
453finally: ; preds = %cleanup
454 br label %cleanup11
455
456cleanup11: ; preds = %finally
457 br label %finally10
458
459finally10: ; preds = %cleanup11
460 br bool false, label %cond_true, label %cond_false286
461
462cond_true: ; preds = %finally10
463 br label %cleanup26
464
465cleanup26: ; preds = %cond_true
466 br label %finally25
467
468finally25: ; preds = %cleanup26
469 br label %bb30
470
471bb27: ; preds = %cond_true37
472 br label %bb30
473
474bb30: ; preds = %bb27, %finally25
475 br bool false, label %cond_true37, label %cond_false
476
477cond_true37: ; preds = %bb30
478 br label %bb27
479
480cond_false: ; preds = %bb30
481 br label %bb38
482
483cond_next: ; No predecessors!
484 br label %bb38
485
486bb38: ; preds = %cond_next, %cond_false
487 br label %bb148
488
489bb40: ; preds = %cond_true156
490 br label %bb139
491
492bb41: ; preds = %cond_true142
493 call fastcc void %_Zjrf7( )
494 br label %bb105
495
496bb44: ; preds = %cond_true112
497 br label %bb74
498
499bb66: ; preds = %cond_true80
500 br label %bb74
501
502bb74: ; preds = %bb66, %bb44
503 br bool false, label %cond_true80, label %cond_false81
504
505cond_true80: ; preds = %bb74
506 br label %bb66
507
508cond_false81: ; preds = %bb74
509 br label %bb83
510
511cond_next82: ; No predecessors!
512 br label %bb83
513
514bb83: ; preds = %cond_next82, %cond_false81
515 br label %cleanup97
516
517cleanup97: ; preds = %bb83
518 br label %finally96
519
520finally96: ; preds = %cleanup97
521 br label %cleanup99
522
523cleanup99: ; preds = %finally96
524 br label %finally98
525
526finally98: ; preds = %cleanup99
527 br label %bb105
528
529bb105: ; preds = %finally98, %bb41
530 br bool false, label %cond_true112, label %cond_false113
531
532cond_true112: ; preds = %bb105
533 br label %bb44
534
535cond_false113: ; preds = %bb105
536 br label %bb115
537
538cond_next114: ; No predecessors!
539 br label %bb115
540
541bb115: ; preds = %cond_next114, %cond_false113
542 br bool false, label %cond_true119, label %cond_false123
543
544cond_true119: ; preds = %bb115
545 call fastcc void %_Zjrf8( )
546 br label %cond_next124
547
548cond_false123: ; preds = %bb115
549 br label %cond_next124
550
551cond_next124: ; preds = %cond_false123, %cond_true119
552 br bool false, label %cond_true131, label %cond_false132
553
554cond_true131: ; preds = %cond_next124
555 br label %cleanup135
556
557cond_false132: ; preds = %cond_next124
558 br label %cond_next133
559
560cond_next133: ; preds = %cond_false132
561 br label %cleanup136
562
563cleanup135: ; preds = %cond_true131
564 br label %done
565
566cleanup136: ; preds = %cond_next133
567 br label %finally134
568
569finally134: ; preds = %cleanup136
570 br label %bb139
571
572bb139: ; preds = %finally134, %bb40
573 br bool false, label %cond_true142, label %cond_false143
574
575cond_true142: ; preds = %bb139
576 br label %bb41
577
578cond_false143: ; preds = %bb139
579 br label %bb145
580
581cond_next144: ; No predecessors!
582 br label %bb145
583
584bb145: ; preds = %cond_next144, %cond_false143
585 br label %bb148
586
587bb148: ; preds = %bb145, %bb38
588 br bool false, label %cond_true156, label %cond_false157
589
590cond_true156: ; preds = %bb148
591 br label %bb40
592
593cond_false157: ; preds = %bb148
594 br label %bb159
595
596cond_next158: ; No predecessors!
597 br label %bb159
598
599bb159: ; preds = %cond_next158, %cond_false157
600 br label %done
601
602done: ; preds = %bb159, %cleanup135
603 br label %bb214
604
605bb185: ; preds = %cond_true218
606 br bool false, label %cond_true193, label %cond_false206
607
608cond_true193: ; preds = %bb185
609 br label %cond_next211
610
611cond_false206: ; preds = %bb185
612 br label %cond_next211
613
614cond_next211: ; preds = %cond_false206, %cond_true193
615 br label %bb214
616
617bb214: ; preds = %cond_next211, %done
618 br bool false, label %cond_true218, label %cond_false219
619
620cond_true218: ; preds = %bb214
621 br label %bb185
622
623cond_false219: ; preds = %bb214
624 br label %bb221
625
626cond_next220: ; No predecessors!
627 br label %bb221
628
629bb221: ; preds = %cond_next220, %cond_false219
630 br bool false, label %cond_true236, label %cond_false245
631
632cond_true236: ; preds = %bb221
633 br label %cond_next249
634
635cond_false245: ; preds = %bb221
636 br label %cond_next249
637
638cond_next249: ; preds = %cond_false245, %cond_true236
639 br bool false, label %cond_true272, label %cond_false277
640
641cond_true272: ; preds = %cond_next249
642 br label %cond_next278
643
644cond_false277: ; preds = %cond_next249
645 br label %cond_next278
646
647cond_next278: ; preds = %cond_false277, %cond_true272
648 br label %cleanup285
649
650cleanup285: ; preds = %cond_next278
651 br label %finally284
652
653finally284: ; preds = %cleanup285
654 br label %cond_next287
655
656cond_false286: ; preds = %finally10
657 br label %cond_next287
658
659cond_next287: ; preds = %cond_false286, %finally284
660 br bool false, label %cond_true317, label %cond_false319
661
662cond_true317: ; preds = %cond_next287
663 br label %cond_next321
664
665cond_false319: ; preds = %cond_next287
666 br label %cond_next321
667
668cond_next321: ; preds = %cond_false319, %cond_true317
669 br label %bb348
670
671bb335: ; preds = %cond_true355
672 br label %bb348
673
674bb348: ; preds = %bb335, %cond_next321
675 br bool false, label %cond_true355, label %cond_false356
676
677cond_true355: ; preds = %bb348
678 br label %bb335
679
680cond_false356: ; preds = %bb348
681 br label %bb358
682
683cond_next357: ; No predecessors!
684 br label %bb358
685
686bb358: ; preds = %cond_next357, %cond_false356
687 br bool false, label %cond_true363, label %cond_false364
688
689cond_true363: ; preds = %bb358
690 br label %bb388
691
692cond_false364: ; preds = %bb358
693 br label %cond_next365
694
695cond_next365: ; preds = %cond_false364
696 br bool false, label %cond_true370, label %cond_false371
697
698cond_true370: ; preds = %cond_next365
699 br label %bb388
700
701cond_false371: ; preds = %cond_next365
702 br label %cond_next372
703
704cond_next372: ; preds = %cond_false371
705 br bool false, label %cond_true385, label %cond_false386
706
707cond_true385: ; preds = %cond_next372
708 br label %bb388
709
710cond_false386: ; preds = %cond_next372
711 br label %cond_next387
712
713cond_next387: ; preds = %cond_false386
714 br label %bb389
715
716bb388: ; preds = %cond_true385, %cond_true370, %cond_true363
717 br label %bb389
718
719bb389: ; preds = %bb388, %cond_next387
720 br bool false, label %cond_true392, label %cond_false443
721
722cond_true392: ; preds = %bb389
723 br label %bb419
724
725bb402: ; preds = %cond_true425
726 br bool false, label %cond_true406, label %cond_false412
727
728cond_true406: ; preds = %bb402
729 br label %cond_next416
730
731cond_false412: ; preds = %bb402
732 br label %cond_next416
733
734cond_next416: ; preds = %cond_false412, %cond_true406
735 br label %bb419
736
737bb419: ; preds = %cond_next416, %cond_true392
738 br bool false, label %cond_true425, label %cond_false426
739
740cond_true425: ; preds = %bb419
741 br label %bb402
742
743cond_false426: ; preds = %bb419
744 br label %bb428
745
746cond_next427: ; No predecessors!
747 br label %bb428
748
749bb428: ; preds = %cond_next427, %cond_false426
750 br label %cond_next478
751
752cond_false443: ; preds = %bb389
753 br label %bb460
754
755bb450: ; preds = %cond_true466
756 br label %bb460
757
758bb460: ; preds = %bb450, %cond_false443
759 br bool false, label %cond_true466, label %cond_false467
760
761cond_true466: ; preds = %bb460
762 br label %bb450
763
764cond_false467: ; preds = %bb460
765 br label %bb469
766
767cond_next468: ; No predecessors!
768 br label %bb469
769
770bb469: ; preds = %cond_next468, %cond_false467
771 br label %cond_next478
772
773cond_next478: ; preds = %bb469, %bb428
774 br label %cleanup485
775
776cleanup485: ; preds = %cond_next478
777 br label %finally484
778
779finally484: ; preds = %cleanup485
780 br label %cleanup487
781
782cleanup487: ; preds = %finally484
783 br label %finally486
784
785finally486: ; preds = %cleanup487
786 br label %cleanup489
787
788cleanup489: ; preds = %finally486
789 br label %finally488
790
791finally488: ; preds = %cleanup489
792 br label %bb492
793
794bb492: ; preds = %finally488, %entry
795 br bool false, label %cond_true499, label %cond_false500
796
797cond_true499: ; preds = %bb492
798 br label %bb
799
800cond_false500: ; preds = %bb492
801 br label %bb502
802
803cond_next501: ; No predecessors!
804 br label %bb502
805
806bb502: ; preds = %cond_next501, %cond_false500
807 br label %return
808
809return: ; preds = %bb502
810 ret void
811}
812
813internal fastcc void %_ZSt26__unguarded_insertion_sortIN9__gnu_cxx17__normal_iteratorIPSsSt6vectorISsSaISsEEEEEvT_S7_() {
814entry:
815 br label %bb12
816
817bb: ; preds = %cond_true
818 br label %cleanup
819
820cleanup: ; preds = %bb
821 br label %finally
822
823finally: ; preds = %cleanup
824 br label %bb12
825
826bb12: ; preds = %finally, %entry
827 br bool false, label %cond_true, label %cond_false
828
829cond_true: ; preds = %bb12
830 br label %bb
831
832cond_false: ; preds = %bb12
833 br label %bb14
834
835cond_next: ; No predecessors!
836 br label %bb14
837
838bb14: ; preds = %cond_next, %cond_false
839 br label %return
840
841return: ; preds = %bb14
842 ret void
843}