1 ; Check that this test makes INDVAR and related stuff dead.
2 ; RUN: opt %s -loop-reduce | llvm-dis | not grep INDVAR
6 define void @test(i32* %P) {
9 Loop: ; preds = %Loop, %0
10 %INDVAR = phi i32 [ 0, %0 ], [ %INDVAR2, %Loop ] ; <i32> [#uses=2]
11 %STRRED = getelementptr i32* %P, i32 %INDVAR ; <i32*> [#uses=1]
12 store i32 0, i32* %STRRED
13 %INDVAR2 = add i32 %INDVAR, 1 ; <i32> [#uses=1]
14 %cond = call i1 @pred( ) ; <i1> [#uses=1]
15 br i1 %cond, label %Loop, label %Out