; Check that the index of 'P[outer]' is pulled out of the loop. ; RUN: llvm-as < %s | opt -loop-reduce | llvm-dis | \ ; RUN: not grep {getelementptr.*%outer.*%INDVAR} declare i1 @pred() define void @test([10000 x i32]* %P, i32 %outer) { ;