re PR middle-end/71734 (FAIL: libgomp.fortran/simd4.f90 -O3 -g execution test)
authorYuri Rumyantsev <ysrumyan@gmail.com>
Wed, 10 Aug 2016 15:03:02 +0000 (15:03 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 10 Aug 2016 15:03:02 +0000 (08:03 -0700)
commitff4fa9934e4ebecfdca45f00efa9f523b11f717a
tree168fc62f9cd808b9e77cd1ef42fe162b6df8c7b0
parenta0883b0800b7a63d8b68a418df694ff1da5b9381
re PR middle-end/71734 (FAIL: libgomp.fortran/simd4.f90   -O3 -g  execution test)

Fix PR tree-optimization/71734

2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>

PR tree-optimization/71734
* tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
REF_LOOP, invoke ref_indep_loop_p_1.
(outermost_indep_loop): Pass LOOP argumnet where REF was defined
to ref_indep_loop_p.
(ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
is inside LOOP, do not cache dpendence value for loops with
non-zero SAFELEN.
(ref_indep_loop_p_2): Delete function.
(can_sm_ref_p): Pass LOOP as additional argument to
ref_indep_loop_p.

From-SVN: r239326
gcc/ChangeLog
gcc/tree-ssa-loop-im.c