aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2010-06-08 14:15:53 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2010-06-08 14:15:53 -0400
commite89065a17202234f50185ce3bf2a80efb2fef938 (patch)
tree4a855d962c105784a8cbaa9f50b09a09cba934e6 /gcc/gimple.h
parentc547eb0db1e58bbe7346705cc35ac36891fee425 (diff)
downloadgcc-e89065a17202234f50185ce3bf2a80efb2fef938.zip
gcc-e89065a17202234f50185ce3bf2a80efb2fef938.tar.gz
gcc-e89065a17202234f50185ce3bf2a80efb2fef938.tar.bz2
re PR tree-optimization/39874 (missing VRP (submission))
2010-06-08 Sandra Loosemore <sandra@codesourcery.com> PR tree-optimization/39874 PR middle-end/28685 gcc/ * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons): Declare. * gimple-fold.c (canonicalize_bool, same_bool_comparison_p, same_bool_result_p): New. (and_var_with_comparison, and_var_with_comparison_1, and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New. (or_var_with_comparison, or_var_with_comparison_1, or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New. * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use maybe_fold_and_comparisons or maybe_fold_or_comparisons instead of combine_comparisons. * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise. gcc/testsuite/ * gcc.dg/pr39874.c: New file. From-SVN: r160445
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index d847e88..c91ca49 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -4812,6 +4812,9 @@ tree maybe_fold_offset_to_address (location_t, tree, tree, tree);
tree maybe_fold_stmt_addition (location_t, tree, tree, tree);
tree get_symbol_constant_value (tree);
bool may_propagate_address_into_dereference (tree, tree);
-
+extern tree maybe_fold_and_comparisons (enum tree_code, tree, tree,
+ enum tree_code, tree, tree);
+extern tree maybe_fold_or_comparisons (enum tree_code, tree, tree,
+ enum tree_code, tree, tree);
#endif /* GCC_GIMPLE_H */