diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-11-23 01:27:42 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-11-23 01:27:42 +0000 |
commit | b52d5eaa44789d6c9593c12d7d1c1419fe59b0c1 (patch) | |
tree | cbdc035bbae2cbaa36d0c682f7035fccc80e4ec2 /gcc/fold-const.c | |
parent | ba2baa55a34a75ddde02a3ac05daf805fc413e1c (diff) | |
download | gcc-b52d5eaa44789d6c9593c12d7d1c1419fe59b0c1.zip gcc-b52d5eaa44789d6c9593c12d7d1c1419fe59b0c1.tar.gz gcc-b52d5eaa44789d6c9593c12d7d1c1419fe59b0c1.tar.bz2 |
fold-const.c (nondestructive_fold_binary_to_constant): Rename to fold_binary_to_constant.
* fold-const.c (nondestructive_fold_binary_to_constant): Rename
to fold_binary_to_constant.
(nondestructive_fold_unary_to_constant): Likewise, rename to
fold_unary_to_constant.
(fold_relational_hi_lo): Update call to fold_binary_to_constant.
* tree.h (nondestructive_fold_binary_to_constant): Update prototype.
(nondestructive_fold_unary_to_constant): Likewise.
* tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
and fold_binary_to_constant.
* tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
(inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
and EXEC_UNARY with calls to fold_*nary_to_constant.
* tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
(idx_find_step): Replace uses of EXEC_BINARY with calls to
fold_binary_to_constant.
From-SVN: r91063
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 611ac14..0a7b7d2 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -10110,11 +10110,10 @@ fold_relational_hi_lo (enum tree_code *code_p, const tree type, tree *op0_p, fold_convert (st0, op0), fold_convert (st1, integer_zero_node)); - retval - = nondestructive_fold_binary_to_constant (TREE_CODE (exp), - TREE_TYPE (exp), - TREE_OPERAND (exp, 0), - TREE_OPERAND (exp, 1)); + retval = fold_binary_to_constant (TREE_CODE (exp), + TREE_TYPE (exp), + TREE_OPERAND (exp, 0), + TREE_OPERAND (exp, 1)); /* If we are in gimple form, then returning EXP would create non-gimple expressions. Clearing it is safe and insures @@ -10145,8 +10144,7 @@ fold_relational_hi_lo (enum tree_code *code_p, const tree type, tree *op0_p, simpler than the generic fold routine. */ tree -nondestructive_fold_binary_to_constant (enum tree_code code, tree type, - tree op0, tree op1) +fold_binary_to_constant (enum tree_code code, tree type, tree op0, tree op1) { int wins = 1; tree subop0; @@ -10440,8 +10438,7 @@ nondestructive_fold_binary_to_constant (enum tree_code code, tree type, the generic fold routine. */ tree -nondestructive_fold_unary_to_constant (enum tree_code code, tree type, - tree op0) +fold_unary_to_constant (enum tree_code code, tree type, tree op0) { /* Make sure we have a suitable constant argument. */ if (code == NOP_EXPR || code == FLOAT_EXPR || code == CONVERT_EXPR) |