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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May  5 15:43:22 2017
New Revision: 247641

URL: https://gcc.gnu.org/viewcvs?rev=247641&root=gcc&view=rev
Log:
        PR tree-optimization/80558
        * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
        [x, y] op z into [x op, y op z] for op & or | if conditions
        are met.

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

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/vrp115.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c

Reply via email to