llvm.org GIT mirror llvm / a8d9c83
Yet another hard testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10349 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 28 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep preheader.loopexit:
1
2 implementation
3
4 void %test() {
5 loopentry.2.i:
6 br bool false, label %no_exit.1.i.preheader, label %loopentry.3.i.preheader
7
8 no_exit.1.i.preheader:
9 br label %no_exit.1.i
10
11 no_exit.1.i:
12 br bool false, label %return.i, label %endif.8.i
13
14 endif.8.i:
15 %inc.1.i = add int 0, 1
16 br bool false, label %no_exit.1.i, label %loopentry.3.i.preheader.loopexit
17
18 loopentry.3.i.preheader.loopexit:
19 br label %loopentry.3.i.preheader
20
21 loopentry.3.i.preheader:
22 %arg_num.0.i.ph13000 = phi int [ 0, %loopentry.2.i ], [ %inc.1.i, %loopentry.3.i.preheader.loopexit ]
23 ret void
24
25 return.i:
26 ret void
27 }