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?

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.

Attachment: patch.3
Description: Binary data

Reply via email to