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/85529] [7/8/9 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu


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

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Apr 27 07:11:44 2018
New Revision: 259697

URL: https://gcc.gnu.org/viewcvs?rev=259697&root=gcc&view=rev
Log:
        PR tree-optimization/85529
        * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Add FIRST_BB
        argument.  Don't call get_nonzero_bits if opcode is ERROR_MARK_NODE,
        rhs2 def stmt's bb is dominated by first_bb and it isn't an obvious
        zero extension or masking of the MSB bit.
        (optimize_range_tests): Add FIRST_BB argument, pass it through
        to optimize_range_tests_var_bound.
        (maybe_optimize_range_tests, reassociate_bb): Adjust
        optimize_range_tests callers.

        * gcc.c-torture/execute/pr85529-1.c: New test.
        * gcc.c-torture/execute/pr85529-2.c: New test.
        * gcc.dg/pr85529.c: New test.

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.c-torture/execute/pr85529-1.c
    branches/gcc-8-branch/gcc/testsuite/gcc.c-torture/execute/pr85529-2.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr85529.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/testsuite/ChangeLog
    branches/gcc-8-branch/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]