[PATCH] Fix PR77290

Richard Biener rguenther@suse.de
Fri Aug 19 07:42:00 GMT 2016


This fixes PR77290 - my previous patch to PRE to limit insertion
for flag_tree_parallelize_loops != 0 was confused because
flag_tree_parallelize_loops is the number of threads to parallelize
for (thus == 1 is the default and to not parallelize).

Fixed as obvious.

Richard.

2016-08-19  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/77290
	* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
	Fix flag_tree_parallelize_loops check.

Index: gcc/tree-ssa-pre.c
===================================================================
--- gcc/tree-ssa-pre.c	(revision 239606)
+++ gcc/tree-ssa-pre.c	(working copy)
@@ -4270,7 +4270,7 @@ eliminate_dom_walker::before_dom_childre
 	  if (sprime
 	      && TREE_CODE (sprime) == SSA_NAME
 	      && do_pre
-	      && (flag_tree_loop_vectorize || flag_tree_parallelize_loops)
+	      && (flag_tree_loop_vectorize || flag_tree_parallelize_loops > 1)
 	      && loop_outer (b->loop_father)
 	      && has_zero_uses (sprime)
 	      && bitmap_bit_p (inserted_exprs, SSA_NAME_VERSION (sprime))



More information about the Gcc-patches mailing list