aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2009-03-28 10:01:56 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2009-03-28 10:01:56 +0000
commita254e44de7e7f417e3cdff485b27396e6bb16650 (patch)
tree41f27c9d3a60891996ed9cd47be2243a484783fc /gcc/fold-const.c
parenta8ee227c046930794867e48c6478b0b04e3bd137 (diff)
downloadgcc-a254e44de7e7f417e3cdff485b27396e6bb16650.zip
gcc-a254e44de7e7f417e3cdff485b27396e6bb16650.tar.gz
gcc-a254e44de7e7f417e3cdff485b27396e6bb16650.tar.bz2
re PR tree-optimization/37795 (if-combine doesn't optimize != after >= test)
2009-03-28 Richard Guenther <rguenther@suse.de> PR tree-optimization/37795 * tree.h (combine_comparisons): Declare. * fold-const.c (combine_comparisons): Export. * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive comparisons. (ifcombine_iforif): Use combine_comparisons. * gcc.dg/tree-ssa/ssa-ifcombine-7.c: New testcase. From-SVN: r145170
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 4ca91a2..2dbca3f 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -103,8 +103,6 @@ static tree associate_trees (tree, tree, enum tree_code, tree);
static tree const_binop (enum tree_code, tree, tree, int);
static enum comparison_code comparison_to_compcode (enum tree_code);
static enum tree_code compcode_to_comparison (enum comparison_code);
-static tree combine_comparisons (enum tree_code, enum tree_code,
- enum tree_code, tree, tree, tree);
static int operand_equal_for_comparison_p (tree, tree, tree);
static int twoval_comparison_p (tree, tree *, tree *, int *);
static tree eval_subst (tree, tree, tree, tree, tree);