llvm.org GIT mirror llvm / fa3e86f
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12488 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 23 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -loop-extract -disable-output
1
2
3 void %maketree() {
4 entry:
5 br bool false, label %no_exit.1, label %loopexit.0
6
7 no_exit.1: ; preds = %entry, %expandbox.entry, %endif
8 br bool false, label %endif, label %expandbox.entry
9
10 expandbox.entry: ; preds = %no_exit.1
11 br bool false, label %loopexit.1, label %no_exit.1
12
13 endif: ; preds = %no_exit.1
14 br bool false, label %loopexit.1, label %no_exit.1
15
16 loopexit.1: ; preds = %expandbox.entry, %endif
17 %ic.i.0.0.4 = phi int [ 0, %expandbox.entry ], [ 0, %endif ] ; [#uses=0]
18 ret void
19
20 loopexit.0: ; preds = %entry
21 ret void
22 }