Commit efd610a6 by Andrew Pinski Committed by Andrew Pinski

fold-const.c (rtl_expr_nonnegative_p): Delete.

2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>

        * fold-const.c (rtl_expr_nonnegative_p): Delete.
        * tree.h (rtl_expr_nonnegative_p): Remove.

From-SVN: r86381
parent 324a6c95
2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
* fold-const.c (rtl_expr_nonnegative_p): Delete.
* tree.h (rtl_expr_nonnegative_p): Remove.
2004-08-22 Steven Bosscher <stevenb@suse.de>
* config/i386/ppro.md (ppro_complex_insn): Add missing check
......
......@@ -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. */
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment