On Tue, Jun 28, 2016 at 5:50 PM, Yuri Rumyantsev <ysrum...@gmail.com> wrote: > Hi All! > > Here is the second part of patch to improve loop invariant code motion > for loop marked with pragma omp simd. > > Bootstrapping and regression testing did not show any new failures. > Is it OK for trunk?
Ok. Thanks, Richard. > ChangeLog: > 2016-06-28 Yuri Rumyantsev <ysrum...@gmail.com> > > PR tree-optimization/70729 > * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as > independent in loops having positive safelen value. > * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since > it may be not valid after vectorization. > > gcc/testsuite/ChangeLog > * g++.dg/vect/pr70729.cc: New test.