aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-08-22 17:29:51 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-08-22 10:29:51 -0700
commitefd610a684483259ed93aeb592373181416eb81c (patch)
tree33fa09e4fe3c63ebd6c2860de832c20bde997afa /gcc/fold-const.c
parent324a6c95a9c2133b2cfddce8386d3cc868dadcf3 (diff)
downloadgcc-efd610a684483259ed93aeb592373181416eb81c.zip
gcc-efd610a684483259ed93aeb592373181416eb81c.tar.gz
gcc-efd610a684483259ed93aeb592373181416eb81c.tar.bz2
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index e85ead8..893aacc 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. */