llvm.org GIT mirror llvm / a930de5
New testcase, reduced from 256.bzip2 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12492 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 47 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -loop-extract -disable-output
1
2 void %sendMTFValues() {
3 entry:
4 br bool false, label %then.1, label %endif.1
5
6 then.1: ; preds = %entry
7 br bool false, label %loopentry.6.preheader, label %else.0
8
9 endif.1: ; preds = %entry
10 ret void
11
12 else.0: ; preds = %then.1
13 ret void
14
15 loopentry.6.preheader: ; preds = %then.1
16 br bool false, label %endif.7.preheader, label %loopexit.9
17
18 endif.7.preheader: ; preds = %loopentry.6.preheader
19 %tmp.183 = add int 0, -1 ; [#uses=1]
20 br label %endif.7
21
22 endif.7: ; preds = %endif.7.preheader, %loopexit.15
23 br bool false, label %loopentry.10, label %loopentry.12
24
25 loopentry.10: ; preds = %endif.7
26 br label %loopentry.12
27
28 loopentry.12: ; preds = %endif.7, %loopentry.10
29 %ge.2.1 = phi int [ 0, %loopentry.10 ], [ %tmp.183, %endif.7 ] ; [#uses=0]
30 br bool false, label %loopexit.14, label %no_exit.11
31
32 no_exit.11: ; preds = %loopentry.12
33 ret void
34
35 loopexit.14: ; preds = %loopentry.12
36 br bool false, label %loopexit.15, label %no_exit.14
37
38 no_exit.14: ; preds = %loopexit.14
39 ret void
40
41 loopexit.15: ; preds = %loopexit.14
42 br bool false, label %endif.7, label %loopexit.9
43
44 loopexit.9: ; preds = %loopentry.6.preheader, %loopexit.15
45 ret void
46 }