1 ; Check that variable strides are reduced to adds instead of multiplies.
2 ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | not grep 'mul'
4 declare bool %pred(int)
6 void %test([10000 x int]* %P, int %STRIDE) {
9 %INDVAR = phi int [0, %0], [%INDVAR2, %Loop]
10 %Idx = mul int %INDVAR, %STRIDE
12 %cond = call bool %pred(int %Idx)
13 %INDVAR2 = add int %INDVAR, 1
14 br bool %cond, label %Loop, label %Out