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