From b52d5eaa44789d6c9593c12d7d1c1419fe59b0c1 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 23 Nov 2004 01:27:42 +0000 Subject: 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 --- gcc/tree-ssa-ccp.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gcc/tree-ssa-ccp.c') diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index 1815ebd..31807fe 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -847,9 +847,7 @@ ccp_fold (tree stmt) op0 = get_value (op0)->const_val; } - retval = nondestructive_fold_unary_to_constant (code, - TREE_TYPE (rhs), - op0); + retval = fold_unary_to_constant (code, TREE_TYPE (rhs), op0); /* If we folded, but did not create an invariant, then we can not use this expression. */ @@ -900,9 +898,7 @@ ccp_fold (tree stmt) op1 = val->const_val; } - retval = nondestructive_fold_binary_to_constant (code, - TREE_TYPE (rhs), - op0, op1); + retval = fold_binary_to_constant (code, TREE_TYPE (rhs), op0, op1); /* If we folded, but did not create an invariant, then we can not use this expression. */ -- cgit v1.1