This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Disable if-conversion by default
- From: Diego Novillo <dnovillo at redhat dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 05 Sep 2004 07:44:53 -0400
- Subject: Disable if-conversion by default
- Organization: Red Hat Canada
If-conversion should run if the vectorizer is enabled. Bootstrap still
in progress. Committed as obvious.
Diego.
* tree-if-conv.c (gate_tree_if_conversion): Enable only if the
vectorizer is enabled.
Index: tree-if-conv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-if-conv.c,v
retrieving revision 2.2
diff -d -u -p -r2.2 tree-if-conv.c
--- tree-if-conv.c 5 Sep 2004 10:54:25 -0000 2.2
+++ tree-if-conv.c 5 Sep 2004 11:39:09 -0000
@@ -1078,7 +1078,7 @@ main_tree_if_conversion (void)
static bool
gate_tree_if_conversion (void)
{
- return true;
+ return flag_tree_vectorize != 0;
}
struct tree_opt_pass pass_if_conversion =