summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-if-conv.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc16e31daa9..69afbcca0ae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c
index 3b9151acb8e..5a24091dbbe 100644
--- a/gcc/tree-if-conv.c
+++ b/gcc/tree-if-conv.c
@@ -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 =