diff options
author | Roger Sayle <roger@eyesopen.com> | 2006-11-08 17:39:35 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2006-11-08 17:39:35 +0000 |
commit | 5cdc4a2674ba9be28278e536a46c9f09c903cbee (patch) | |
tree | d5a3abe998fec0ea4665a0f7cb5687f9a693ae5f /gcc/builtins.c | |
parent | c794c06fef9e079ecdd14bae8ceb3d9046771979 (diff) | |
download | gcc-5cdc4a2674ba9be28278e536a46c9f09c903cbee.zip gcc-5cdc4a2674ba9be28278e536a46c9f09c903cbee.tar.gz gcc-5cdc4a2674ba9be28278e536a46c9f09c903cbee.tar.bz2 |
tree-ssa-propagate.c (set_rhs): Restructure validity tests as a test for inclusion rather than as a test for...
* tree-ssa-propagate.c (set_rhs): Restructure validity tests as a
test for inclusion rather than as a test for exclusion.
* tree-ssa-ccp.c (fold_stmt_r) <COND_EXPR>: Use set_rhs to modify
the condition after calling fold_binary.
* fold-const.c (fold_inf_compare): Remove in_gimple_form check.
(fold_binary) <LT_EXPR, GT_EXPR, LE_EXPR, GE_EXPR>: Likewise.
* builtins.c (fold_builtin_isascii): Likewise.
(fold_builtin_isdigit): Likewise.
From-SVN: r118593
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 64bb52b..17355f7 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -8758,13 +8758,8 @@ fold_builtin_isascii (tree arglist) arg = build2 (BIT_AND_EXPR, integer_type_node, arg, build_int_cst (NULL_TREE, ~ (unsigned HOST_WIDE_INT) 0x7f)); - arg = fold_build2 (EQ_EXPR, integer_type_node, - arg, integer_zero_node); - - if (in_gimple_form && !TREE_CONSTANT (arg)) - return NULL_TREE; - else - return arg; + return fold_build2 (EQ_EXPR, integer_type_node, + arg, integer_zero_node); } } @@ -8807,12 +8802,8 @@ fold_builtin_isdigit (tree arglist) arg = fold_convert (unsigned_type_node, TREE_VALUE (arglist)); arg = build2 (MINUS_EXPR, unsigned_type_node, arg, build_int_cst (unsigned_type_node, target_digit0)); - arg = fold_build2 (LE_EXPR, integer_type_node, arg, - build_int_cst (unsigned_type_node, 9)); - if (in_gimple_form && !TREE_CONSTANT (arg)) - return NULL_TREE; - else - return arg; + return fold_build2 (LE_EXPR, integer_type_node, arg, + build_int_cst (unsigned_type_node, 9)); } } |