[Bug tree-optimization/87261] Optimize bool expressions

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 1 11:26:00 GMT 2018


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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Oct  1 11:25:45 2018
New Revision: 264744

URL: https://gcc.gnu.org/viewcvs?rev=264744&root=gcc&view=rev
Log:
2018-10-01  MCC CS <deswurstes@users.noreply.github.com>

        PR tree-optimization/87261
        * match.pd: Remove trailing whitespace.
        Add (x & y) | ~(x | y) -> ~(x ^ y),
        (~x | y) ^ (x ^ y) -> x | ~y and (x ^ y) | ~(x | y) -> ~(x & y)

        * gcc.dg/pr87261.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr87261.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list