1 ; Don't reduce the byte access to P[i], at least not on targets that
2 ; support an efficient 'mem[r1+r2]' addressing mode.
4 ; RUN: llvm-as < %s | opt -loop-reduce -disable-output
8 declare bool %pred(int)
10 void %test(sbyte* %PTR) {
13 %INDVAR = phi int [0, %0], [%INDVAR2, %Loop]
15 %STRRED = getelementptr sbyte* %PTR, int %INDVAR
16 store sbyte 0, sbyte* %STRRED
18 %INDVAR2 = add int %INDVAR, 1
19 %cond = call bool %pred(int %INDVAR2) ;; cannot eliminate indvar
20 br bool %cond, label %Loop, label %Out