This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed]: Don't run parloops pass for -ftree-parallelize-loops=0
- From: "Uros Bizjak" <ubizjak at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 6 Dec 2007 11:39:38 +0100
- Subject: [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