diff options
author | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-20 20:26:11 +0000 |
---|---|---|
committer | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-20 20:26:11 +0000 |
commit | de4528367818c560d1b1ac6c607dec6cbc21cfcb (patch) | |
tree | 7f921cc272661cbe1016b176fa359221ff219a4f /gcc/tree.h | |
parent | b90ce3c3209f7c3d8c939bb687ad22f3c97b36c7 (diff) | |
download | gcc-de4528367818c560d1b1ac6c607dec6cbc21cfcb.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index b9cd508edd0..10472fe839b 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -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); |