From 2addf92620c2d652f72c4cb204fb46d980e784e5 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Sun, 5 Sep 2004 11:43:42 +0000 Subject: [PATCH] tree-if-conv.c (gate_tree_if_conversion): Enable only if the vectorizer is enabled. * tree-if-conv.c (gate_tree_if_conversion): Enable only if the vectorizer is enabled. From-SVN: r87103 --- gcc/ChangeLog | 5 +++++ gcc/tree-if-conv.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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 + + * tree-if-conv.c (gate_tree_if_conversion): Enable only if the + vectorizer is enabled. + 2004-09-05 Andreas Jaeger * 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 = -- 2.30.2