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]

Disable if-conversion by default


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 =



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