temporarily fail these two tests until LSR evolves to support them
[oota-llvm.git] / test / Transforms / LoopStrengthReduce / dont_reduce_bytes.ll
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.
3
4 ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | grep 'getelementptr.*PTR.*INDVAR'
5
6 ; XFAIL: *
7
8 declare bool %pred(int)
9
10 void %test(sbyte* %PTR) {
11         br label %Loop
12 Loop:
13         %INDVAR = phi int [0, %0], [%INDVAR2, %Loop]
14
15         %STRRED = getelementptr sbyte* %PTR, int %INDVAR
16         store sbyte 0, sbyte* %STRRED
17
18         %INDVAR2 = add int %INDVAR, 1
19         %cond = call bool %pred(int %INDVAR2)  ;; cannot eliminate indvar
20         br bool %cond, label %Loop, label %Out
21 Out:
22         ret void
23 }