From f9d97e407ff87e930c40d27f37e666fa4db79643 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 18 Aug 2016 10:06:03 +0000 Subject: [PATCH] re PR tree-optimization/77282 (test case gcc.dg/autopar/pr46193.c fails starting with r239414) 2016-08-18 Richard Biener 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 | 7 +++++++ gcc/tree-ssa-pre.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d89dbb8e5e..20c5d584a73 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-08-18 Richard Biener + + 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  Ramana Radhakrishnan  diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index 5d21c80493a..b1e869b8a4c 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)) -- 2.30.2