This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/37795] if-combine doesn't optimize != after >= test



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-03-28 10:02 -------
Subject: Bug 37795

Author: rguenth
Date: Sat Mar 28 10:01:56 2009
New Revision: 145170

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145170
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/ssa-ifcombine-7.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-ifcombine.c
    trunk/gcc/tree.h


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]