blob: 44c89d67b32fae9b605021095ffd27afbc951e51 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output
2
3implementation ; Functions:
4
5void %symhash_add() {
6entry:
7 br bool undef, label %then.0, label %UnifiedReturnBlock
8
9then.0: ; preds = %entry
10 br bool undef, label %loopentry.2, label %loopentry.1.preheader
11
12loopentry.1.preheader: ; preds = %then.0
13 br label %loopentry.1.outer
14
15loopentry.1.outer: ; preds = %loopentry.1.preheader, %loopexit.1
16 br label %loopentry.1
17
18loopentry.1: ; preds = %loopentry.1.outer, %then.1, %then.3, %then.4, %endif.1
19 br bool undef, label %loopexit.1, label %no_exit.1
20
21no_exit.1: ; preds = %loopentry.1
22 br bool undef, label %then.1, label %else.0
23
24then.1: ; preds = %no_exit.1
25 br label %loopentry.1
26
27else.0: ; preds = %no_exit.1
28 br bool undef, label %then.2, label %else.1
29
30then.2: ; preds = %else.0
31 br bool undef, label %then.3, label %endif.1
32
33then.3: ; preds = %then.2
34 br label %loopentry.1
35
36else.1: ; preds = %else.0
37 br bool undef, label %endif.1, label %then.4
38
39then.4: ; preds = %else.1
40 br label %loopentry.1
41
42endif.1: ; preds = %then.2, %else.1
43 br label %loopentry.1
44
45loopexit.1: ; preds = %loopentry.1
46 br bool undef, label %loopentry.1.outer, label %loopentry.2
47
48loopentry.2: ; preds = %then.0, %loopexit.1, %no_exit.2
49 br bool undef, label %loopexit.2, label %no_exit.2
50
51no_exit.2: ; preds = %loopentry.2
52 br label %loopentry.2
53
54loopexit.2: ; preds = %loopentry.2
55 ret void
56
57UnifiedReturnBlock: ; preds = %entry
58 ret void
59}