diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 331698cd9a46..5b009a7b42d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-11-12 Devang Patel + + * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P. + 2004-11-12 Devang Patel * tree-if-conv.c (clean_predicate_lists): Use loop header diff --git a/gcc/optabs.c b/gcc/optabs.c index cfed9040180c..3c8b91f16f34 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5082,7 +5082,7 @@ vector_compare_rtx (tree cond, bool unsignedp, enum insn_code icode) tree t_op0, t_op1; rtx rtx_op0, rtx_op1; - if (TREE_CODE_CLASS (TREE_CODE (cond)) != '<') + if (COMPARISON_CLASS_P (cond)) { /* This is unlikely. While generating VEC_COND_EXPR, auto vectorizer ensures that condition is a relational