1 ; RUN: llvm-as < %s | opt -loop-index-split -stats | not grep "loop-index-split"
4 @g_138 = common global i32 0 ; <i32*> [#uses=3]
5 @g_188 = common global i32 0 ; <i32*> [#uses=4]
6 @g_207 = common global i32 0 ; <i32*> [#uses=3]
7 @"\01LC" = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1]
8 @g_102 = common global i32 0 ; <i32*> [#uses=0]
10 define i32 @func_119() nounwind {
12 %0 = volatile load i32* @g_138, align 4 ; <i32> [#uses=1]
16 define void @func_110(i32 %p_111) nounwind {
18 %0 = load i32* @g_188, align 4 ; <i32> [#uses=1]
19 %1 = icmp ugt i32 %0, -1572397472 ; <i1> [#uses=1]
20 br i1 %1, label %bb, label %bb1
23 %2 = volatile load i32* @g_138, align 4 ; <i32> [#uses=0]
27 store i32 1, i32* @g_207, align 4
31 define void @func_34() nounwind {
33 store i32 0, i32* @g_188
34 %g_188.promoted = load i32* @g_188 ; <i32> [#uses=1]
37 bb: ; preds = %func_110.exit, %entry
38 %g_188.tmp.0 = phi i32 [ %g_188.promoted, %entry ], [ %2, %func_110.exit ] ; <i32> [#uses=2]
39 %0 = icmp ugt i32 %g_188.tmp.0, -1572397472 ; <i1> [#uses=1]
40 br i1 %0, label %bb.i, label %bb1.i
43 %1 = volatile load i32* @g_138, align 4 ; <i32> [#uses=0]
44 br label %func_110.exit
47 store i32 1, i32* @g_207, align 4
48 br label %func_110.exit
50 func_110.exit: ; preds = %bb.i, %bb1.i
51 %2 = add i32 %g_188.tmp.0, 1 ; <i32> [#uses=3]
52 %3 = icmp sgt i32 %2, 1 ; <i1> [#uses=1]
53 br i1 %3, label %return, label %bb
55 return: ; preds = %func_110.exit
56 %.lcssa = phi i32 [ %2, %func_110.exit ] ; <i32> [#uses=1]
57 store i32 %.lcssa, i32* @g_188
61 define i32 @main() nounwind {
63 call void @func_34() nounwind
64 %0 = load i32* @g_207, align 4 ; <i32> [#uses=1]
65 %1 = call i32 (i8*, ...)* @printf(i8* getelementptr ([4 x i8]* @"\01LC", i32 0, i32 0), i32 %0) nounwind ; <i32> [#uses=0]
69 declare i32 @printf(i8*, ...) nounwind