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-upgrade < %s | llvm-as | opt -loop-reduce -disable-output
6 declare bool %pred(int)
8 void %test(sbyte* %PTR) {
11 %INDVAR = phi int [0, %0], [%INDVAR2, %Loop]
13 %STRRED = getelementptr sbyte* %PTR, int %INDVAR
14 store sbyte 0, sbyte* %STRRED
16 %INDVAR2 = add int %INDVAR, 1
17 %cond = call bool %pred(int %INDVAR2) ;; cannot eliminate indvar
18 br bool %cond, label %Loop, label %Out