This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed]: Don't run parloops pass for -ftree-parallelize-loops=0


Hello!

2007-12-05  Uros Bizjak  <ubizjak@gmail.com>

	* tree-ssa-loop.c (gate_tree_parallelize_loops): Return true when
	"flag_tree_parallelize_loops > 1".

Tested on i686-pc-linux-gnu, committed as obvious to SVN mainline.

Uros.

Index: tree-ssa-loop.c
===================================================================
--- tree-ssa-loop.c     (revision 130647)
+++ tree-ssa-loop.c     (working copy)
@@ -474,7 +474,7 @@ struct tree_opt_pass pass_complete_unrol
 static bool
 gate_tree_parallelize_loops (void)
 {
-  return flag_tree_parallelize_loops != 1;
+  return flag_tree_parallelize_loops > 1;
 }

 static unsigned


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]