diff mbox

Fix PR72517

Message ID alpine.LSU.2.11.1607271234110.30444@t29.fhfr.qr
State New
Headers show

Commit Message

Richard Biener July 27, 2016, 10:34 a.m. UTC
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.

Richard.

2016-07-27  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/72517
	* tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
	Revert change to not compute read-read dependences.
diff mbox

Patch

Index: gcc/tree-vect-data-refs.c
===================================================================
--- gcc/tree-vect-data-refs.c	(revision 238781)
+++ gcc/tree-vect-data-refs.c	(working copy)
@@ -473,9 +473,10 @@  vect_analyze_data_ref_dependences (loop_
     .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)