From efd610a684483259ed93aeb592373181416eb81c Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sun, 22 Aug 2004 17:29:51 +0000 Subject: [PATCH] fold-const.c (rtl_expr_nonnegative_p): Delete. 2004-08-22 Andrew Pinski * fold-const.c (rtl_expr_nonnegative_p): Delete. * tree.h (rtl_expr_nonnegative_p): Remove. From-SVN: r86381 --- gcc/ChangeLog | 5 +++++ gcc/fold-const.c | 44 -------------------------------------------- gcc/tree.h | 1 - 3 files changed, 5 insertions(+), 45 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26615a869cd..df344189066 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-22 Andrew Pinski + + * fold-const.c (rtl_expr_nonnegative_p): Delete. + * tree.h (rtl_expr_nonnegative_p): Remove. + 2004-08-22 Steven Bosscher * config/i386/ppro.md (ppro_complex_insn): Add missing check diff --git a/gcc/fold-const.c b/gcc/fold-const.c index e85ead88b32..893aacca8e3 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -9700,50 +9700,6 @@ tree_expr_nonzero_p (tree t) return false; } -/* Return true if `r' is known to be non-negative. - Only handles constants at the moment. */ - -int -rtl_expr_nonnegative_p (rtx r) -{ - switch (GET_CODE (r)) - { - case CONST_INT: - return INTVAL (r) >= 0; - - case CONST_DOUBLE: - if (GET_MODE (r) == VOIDmode) - return CONST_DOUBLE_HIGH (r) >= 0; - return 0; - - case CONST_VECTOR: - { - int units, i; - rtx elt; - - units = CONST_VECTOR_NUNITS (r); - - for (i = 0; i < units; ++i) - { - elt = CONST_VECTOR_ELT (r, i); - if (!rtl_expr_nonnegative_p (elt)) - return 0; - } - - return 1; - } - - case SYMBOL_REF: - case LABEL_REF: - /* These are always nonnegative. */ - return 1; - - default: - return 0; - } -} - - /* See if we are applying CODE, a relational to the highest or lowest possible integer of TYPE. If so, then the result is a compile time constant. */ diff --git a/gcc/tree.h b/gcc/tree.h index 6c01ab190f6..310704174b3 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2798,7 +2798,6 @@ extern HOST_WIDE_INT tree_low_cst (tree, int); extern int tree_int_cst_msb (tree); extern int tree_int_cst_sgn (tree); extern int tree_expr_nonnegative_p (tree); -extern int rtl_expr_nonnegative_p (rtx); extern tree get_inner_array_type (tree); /* From expmed.c. Since rtl.h is included after tree.h, we can't -- 2.30.2