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/77664] Missed optimization: signed int >= 0 && < unsigned short


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77664

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct  7 09:33:47 2016
New Revision: 240858

URL: https://gcc.gnu.org/viewcvs?rev=240858&root=gcc&view=rev
Log:
        PR tree-optimization/77664
        * tree-ssa-reassoc.c (update_range_test): Also clear low and high
        for the other ranges.
        (optimize_range_tests_diff): Fix up formatting.
        (optimize_range_tests_var_bound): New function.
        (optimize_range_tests): Use it.

        * gcc.dg/tree-ssa/pr77664.c: New test.
        * gcc.dg/pr77664.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr77664.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/pr77664.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-reassoc.c

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