llvm.org GIT mirror llvm / 0ac4d92
New testcase that LICM is breaking crafty on git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10408 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -licm | lli
1
2 implementation ; Functions:
3
4 int %main() {
5 entry:
6 br label %Loop
7
8 Loop:
9 br bool true, label %LoopCont, label %Out
10 LoopCont:
11 %X = add int 1, 0
12 br bool true, label %Out, label %Loop
13
14 Out:
15 %V = phi int [ 2, %Loop], [ %X, %LoopCont]
16 %V2 = sub int %V, 1
17 ret int %V2
18 }
19