This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r161609 - in /branches/gcc-4_5-branch/gcc: Chan...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 30 Jun 2010 15:34:09 -0000
- Subject: r161609 - in /branches/gcc-4_5-branch/gcc: Chan...
Author: jakub
Date: Wed Jun 30 15:34:09 2010
New Revision: 161609
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161609
Log:
Backport from mainline
2010-06-25 Jakub Jelinek <jakub@redhat.com>
PR middle-end/43866
* tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
true or always false, return NULL_TREE.
(tree_unswitch_single_loop): Optimize conditions even when reaching
max-unswitch-level parameter. If num > 0, optimize first all conditions
using entry checks, then do still reachable block discovery and consider
only conditions in still reachable basic blocks in the loop.
* gfortran.dg/pr43866.f90: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/pr43866.f90
- copied unchanged from r161375, trunk/gcc/testsuite/gfortran.dg/pr43866.f90
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
branches/gcc-4_5-branch/gcc/tree-ssa-loop-unswitch.c