tree-if-conv.c (gate_tree_if_conversion): Enable only if the vectorizer is enabled.
authorDiego Novillo <dnovillo@redhat.com>
Sun, 5 Sep 2004 11:43:42 +0000 (11:43 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Sun, 5 Sep 2004 11:43:42 +0000 (07:43 -0400)
* tree-if-conv.c (gate_tree_if_conversion): Enable only if the
vectorizer is enabled.

From-SVN: r87103

gcc/ChangeLog
gcc/tree-if-conv.c

index bc16e31daa915d6a5ca47cf0f36c7c2181ddfc44..69afbcca0ae28ee7717eb0835b92bcc0a2efd92e 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-05  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
+       vectorizer is enabled.
+
 2004-09-05  Andreas Jaeger  <aj@suse.de>
 
        * tree-if-conv.c: Spell check comments and clean up whitespace.
index 3b9151acb8ed0eda0eb7d55737a51f68427decfa..5a24091dbbec5e6da8377fa0a54ca28cdc2eb97f 100644 (file)
@@ -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 =