diff options
author | Richard Guenther <rguenther@suse.de> | 2008-02-20 14:13:47 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-02-20 14:13:47 +0000 |
commit | 2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6 (patch) | |
tree | c5e05848bec7920261ee516331b46b45437148c4 /gcc/fold-const.c | |
parent | 1c8bd6a397365e8cc69507f8c311f1fda3d6ebec (diff) | |
download | gcc-2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6.zip gcc-2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6.tar.gz gcc-2dc0f63301e9bddc5520f2a283d7a8bfdac21fb6.tar.bz2 |
tree.h (fold_real_zero_addition_p): Declare.
2008-02-20 Richard Guenther <rguenther@suse.de>
* tree.h (fold_real_zero_addition_p): Declare.
* fold-const.c (fold_real_zero_addition_p): Export.
* tree-ssa-reassoc.c (eliminate_using_constants): Also handle
floating-point operations with zero and one.
* gcc.dg/tree-ssa/reassoc-13.c: New testcase.
From-SVN: r132480
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index a33b2b0..aba71b6 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -134,7 +134,6 @@ static tree extract_muldiv_1 (tree, tree, enum tree_code, tree, bool *); static tree fold_binary_op_with_conditional_arg (enum tree_code, tree, tree, tree, tree, tree, int); -static bool fold_real_zero_addition_p (const_tree, const_tree, int); static tree fold_mathfn_compare (enum built_in_function, enum tree_code, tree, tree, tree); static tree fold_inf_compare (enum tree_code, tree, tree, tree); @@ -6426,7 +6425,7 @@ fold_binary_op_with_conditional_arg (enum tree_code code, X - 0 is not the same as X because 0 - 0 is -0. In other rounding modes, X + 0 is not the same as X because -0 + 0 is 0. */ -static bool +bool fold_real_zero_addition_p (const_tree type, const_tree addend, int negate) { if (!real_zerop (addend)) |