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/tree.h | |
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/tree.h')
-rw-r--r-- | gcc/tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4851,6 +4851,8 @@ extern enum tree_code invert_tree_comparison (enum tree_code, bool); extern bool tree_expr_nonzero_p (tree); extern bool tree_expr_nonzero_warnv_p (tree, bool *); +extern bool fold_real_zero_addition_p (const_tree, const_tree, int); + /* In builtins.c */ extern tree fold_call_expr (tree, bool); extern tree fold_builtin_fputs (tree, tree, bool, bool, tree); |