1 ; Check that this test makes INDVAR and related stuff dead, because P[indvar]
2 ; gets reduced, making INDVAR dead.
4 ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | not grep INDVAR
10 void %test([10000 x int]* %P) {
13 %INDVAR = phi int [0, %0], [%INDVAR2, %Loop]
14 %idx = call int %getidx()
15 %STRRED = getelementptr [10000 x int]* %P, int %INDVAR, int %idx
16 store int 0, int* %STRRED
18 %INDVAR2 = add int %INDVAR, 1
19 %cond = call bool %pred()
20 br bool %cond, label %Loop, label %Out