New testcase that LICM is breaking crafty on
[oota-llvm.git] / test / Transforms / LICM / 2003-12-11-SinkingToPHI.ll
1 ; RUN: llvm-as < %s | opt -licm | lli
2
3 implementation   ; Functions:
4
5 int %main() {
6 entry:
7         br label %Loop
8
9 Loop:
10         br bool true, label %LoopCont, label %Out
11 LoopCont:
12         %X = add int 1, 0
13         br bool true, label %Out, label %Loop
14
15 Out:
16         %V = phi int [ 2, %Loop], [ %X, %LoopCont]
17         %V2 = sub int %V, 1
18         ret int %V2
19 }
20