aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-08-18 10:06:03 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-08-18 10:06:03 +0000
commitf9d97e407ff87e930c40d27f37e666fa4db79643 (patch)
tree8ed809f4dff007e9b63483c33e6490b5dcb079ca
parent6cb984919944d6a622c459140301ab11a850aa64 (diff)
downloadgcc-f9d97e407ff87e930c40d27f37e666fa4db79643.zip
gcc-f9d97e407ff87e930c40d27f37e666fa4db79643.tar.gz
gcc-f9d97e407ff87e930c40d27f37e666fa4db79643.tar.bz2
re PR tree-optimization/77282 (test case gcc.dg/autopar/pr46193.c fails starting with r239414)
2016-08-18 Richard Biener <rguenther@suse.de> PR tree-optimization/77282 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): When doing auto-parallelizing also prevent use of PHIs that carry dependences across loop backedges. From-SVN: r239565
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/tree-ssa-pre.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5d89dbb..20c5d58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2016-08-18 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/77282
+ * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
+ When doing auto-parallelizing also prevent use of PHIs that
+ carry dependences across loop backedges.
+
2016-08-18  Tamar Christina  <tamar.christina@arm.com>
Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 5d21c80..b1e869b 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -4270,7 +4270,7 @@ eliminate_dom_walker::before_dom_children (basic_block b)
if (sprime
&& TREE_CODE (sprime) == SSA_NAME
&& do_pre
- && flag_tree_loop_vectorize
+ && (flag_tree_loop_vectorize || flag_tree_parallelize_loops)
&& loop_outer (b->loop_father)
&& has_zero_uses (sprime)
&& bitmap_bit_p (inserted_exprs, SSA_NAME_VERSION (sprime))