re PR tree-optimization/77282 (test case gcc.dg/autopar/pr46193.c fails starting...
authorRichard Biener <rguenther@suse.de>
Thu, 18 Aug 2016 10:06:03 +0000 (10:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 18 Aug 2016 10:06:03 +0000 (10:06 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-pre.c

index 5d89dbb8e5e829bd21701dee29e7ac0570dcade4..20c5d584a73c93964ebcdff56b2c34a2df3554e4 100644 (file)
@@ -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>
 
index 5d21c80493a832e389b8ea69bc13b739b91a8639..b1e869b8a4c39aee8a89819d4b38ac61e90abcd8 100644 (file)
@@ -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))