blob: dda6d9d4d20bd6fc92bcf31dc052d2548dd7f827 [file] [log] [blame]
Chris Lattnera22ef482004-03-10 21:41:47 +00001; RUN: llvm-as < %s | opt -indvars -disable-output
2
3implementation ; Functions:
4
5void %test() {
6 br label %endif.0.i
7
8endif.0.i: ; preds = %then.0.i
9 br bool false, label %then.3.i, label %endif.3.i
10
11then.3.i: ; preds = %endif.0.i
12 br label %endif.3.i
13
14endif.3.i: ; preds = %endif.0.i, %then.3.i
15 %inxm.0.i = phi int [ 8, %then.3.i ], [ 0, %endif.0.i ]
16 %doinner.1.i = phi int [ 0, %then.3.i ], [ 0, %endif.0.i ]
17 br label %loopentry.2.i
18
19loopentry.2.i: ; preds = %endif.3.i, %no_exit.2.i
20 %inxk.0.i = phi int [ %tmp.210.i, %no_exit.2.i ], [ 0, %endif.3.i ]
21 br label %no_exit.2.i
22
23no_exit.2.i: ; preds = %loopentry.2.i
24 %tmp.210.i = sub int %inxk.0.i, %inxm.0.i
25 %tmp.213.i = add int %tmp.210.i, 0
26 br label %loopentry.2.i
27}