Chris Lattner | a22ef48 | 2004-03-10 21:41:47 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | opt -indvars -disable-output |
| 2 | |
| 3 | implementation ; Functions: |
| 4 | |
| 5 | void %test() { |
| 6 | br label %endif.0.i |
| 7 | |
| 8 | endif.0.i: ; preds = %then.0.i |
| 9 | br bool false, label %then.3.i, label %endif.3.i |
| 10 | |
| 11 | then.3.i: ; preds = %endif.0.i |
| 12 | br label %endif.3.i |
| 13 | |
| 14 | endif.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 | |
| 19 | loopentry.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 | |
| 23 | no_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 | } |