From: Richard Biener Date: Wed, 27 Jul 2016 11:10:25 +0000 (+0000) Subject: re PR tree-optimization/72517 (436.cactusADM: More than 40% regression in O3 and... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd583351acbf823a19af80146b1655e60f4b5ca4;p=gcc.git re PR tree-optimization/72517 (436.cactusADM: More than 40% regression in O3 and Ofast on AMD bdver4 m/c.) 2016-07-27 Richard Biener PR tree-optimization/72517 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Revert change to not compute read-read dependences. From-SVN: r238783 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e5aa7c76f8a..d2a295352ff 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-07-27 Richard Biener + + PR tree-optimization/72517 + * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): + Revert change to not compute read-read dependences. + 2016-07-27 Richard Biener * predict.c (set_even_probabilities): Make nedges unsigned. diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 9a5408e14a5..e908c865fbd 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -473,9 +473,10 @@ vect_analyze_data_ref_dependences (loop_vec_info loop_vinfo, int *max_vf) .create (LOOP_VINFO_DATAREFS (loop_vinfo).length () * LOOP_VINFO_DATAREFS (loop_vinfo).length ()); LOOP_VINFO_NO_DATA_DEPENDENCIES (loop_vinfo) = true; + /* We need read-read dependences to compute STMT_VINFO_SAME_ALIGN_REFS. */ if (!compute_all_dependences (LOOP_VINFO_DATAREFS (loop_vinfo), &LOOP_VINFO_DDRS (loop_vinfo), - LOOP_VINFO_LOOP_NEST (loop_vinfo), false)) + LOOP_VINFO_LOOP_NEST (loop_vinfo), true)) return false; FOR_EACH_VEC_ELT (LOOP_VINFO_DDRS (loop_vinfo), i, ddr)