]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/37795 (if-combine doesn't optimize != after >= test)
authorRichard Guenther <rguenther@suse.de>
Sat, 28 Mar 2009 10:01:56 +0000 (10:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 28 Mar 2009 10:01:56 +0000 (10:01 +0000)
commita254e44de7e7f417e3cdff485b27396e6bb16650
tree41f27c9d3a60891996ed9cd47be2243a484783fc
parenta8ee227c046930794867e48c6478b0b04e3bd137
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
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-7.c [new file with mode: 0644]
gcc/tree-ssa-ifcombine.c
gcc/tree.h