Fix PR tree-optimization/71734
commit3326faefc14c208bbff70676c550b01b6ba811d9
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Aug 2016 15:03:02 +0000 (10 15:03 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Aug 2016 15:03:02 +0000 (10 15:03 +0000)
tree168fc62f9cd808b9e77cd1ef42fe162b6df8c7b0
parentb7ed2a6586c2271c1600fcadf9fcb1cbd019b6f5
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239326 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-loop-im.c