------- Comment #24 from jakub at gcc dot gnu dot org  2010-06-30 15:34 -------
Subject: Bug 43866

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  <ja...@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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43866

Reply via email to