diff options
author | James A. Morrison <phython@gcc.gnu.org> | 2005-07-20 20:26:11 +0000 |
---|---|---|
committer | James A. Morrison <phython@gcc.gnu.org> | 2005-07-20 20:26:11 +0000 |
commit | 4db8040cd4deb681b4bfe51535345eca42cbd42b (patch) | |
tree | 7f921cc272661cbe1016b176fa359221ff219a4f /gcc/tree.h | |
parent | 09350e36ee3973f286340455d1e8c01506699f73 (diff) | |
download | gcc-4db8040cd4deb681b4bfe51535345eca42cbd42b.zip gcc-4db8040cd4deb681b4bfe51535345eca42cbd42b.tar.gz gcc-4db8040cd4deb681b4bfe51535345eca42cbd42b.tar.bz2 |
tree.h (tree_expr_nonzero_p): Export.
2005-07-20 James A. Morrison <phython@gcc.gnu.org>
* tree.h (tree_expr_nonzero_p): Export.
* fold-const.c (tree_expr_nonzero_p): Likewise.
Return true for CALL_EXPRs that are alloca calls.
(fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
against zero.
* tree-flow.h (expr_computes_nonzero): Remove.
* tree-vrp.c (expr_computes_nonzero): Remove.
(vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
(extract_range_from_unary_expr): Likewise.
* tree-ssa-dom.c (record_equivalences_from_stmt): Use
tree_expr_nonzero_p.
From-SVN: r102201
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3851,6 +3851,8 @@ extern enum tree_code swap_tree_comparison (enum tree_code); extern bool ptr_difference_const (tree, tree, HOST_WIDE_INT *); extern enum tree_code invert_tree_comparison (enum tree_code, bool); +extern bool tree_expr_nonzero_p (tree); + /* In builtins.c */ extern tree fold_builtin (tree, tree, bool); extern tree fold_builtin_fputs (tree, bool, bool, tree); |