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 middle-end/35691] Missed (a == 0) && (b == 0) into (a|(typeof(a)(b)) == 0 when the types don't match


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Sep 26 13:58:11 2017
New Revision: 253201

URL: https://gcc.gnu.org/viewcvs?rev=253201&root=gcc&view=rev
Log:
        PR middle-end/35691
        * tree-ssa-reassoc.c (update_range_test): Dump r->exp each time
        if it is different SSA_NAME.
        (optimize_range_tests_cmp_bitwise): New function.
        (optimize_range_tests): Call it.

        * gcc.dg/pr35691-5.c: New test.
        * gcc.dg/pr35691-6.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr35691-5.c
    trunk/gcc/testsuite/gcc.dg/pr35691-6.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]