From 7da4bf7dd7624094cd3422246af9f10c8538eb51 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 24 Apr 2005 14:15:13 +0000 Subject: tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use COMPARISON_CLASS_P. * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use COMPARISON_CLASS_P. * tree-ssa-pre.c (create_value_expr_from): Use CONSTANT_CLASS_P and REFERENCE_CLASS_P. * tree-ssa-propagate.c (stmt_makes_single_load, stmt_makes_single_store): Use REFERENCE_CLASS_P. * tree-vect-transform.c (vect_is_simple_cond): Use COMPARISON_CLASS_P. * tree-vrp.c (extract_range_from_assert, build_assert_expr_for, fp_predicate, has_assert_expr): Use COMPARISON_CLASS_P. From-SVN: r98664 --- gcc/tree-ssa-copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-ssa-copy.c') diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index e657bdb..1b64638 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -604,7 +604,7 @@ copy_prop_visit_cond_stmt (tree stmt, edge *taken_edge_p) /* The only conditionals that we may be able to compute statically are predicates involving at least one SSA_NAME. */ - if (TREE_CODE_CLASS (TREE_CODE (cond)) == tcc_comparison + if (COMPARISON_CLASS_P (cond) && NUM_USES (uses) >= 1) { unsigned i; -- cgit v1.1