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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:8fc183ccd0628465205b8a88c29ab69bfe74a08a

commit r11-6651-g8fc183ccd0628465205b8a88c29ab69bfe74a08a
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Jan 13 19:54:49 2021 +0100

    match.pd: Fold (~X | C) ^ D into (X | C) ^ (~D ^ C) if (~D ^ C) can be
simplified [PR96691]

    These simplifications are only simplifications if the (~D ^ C) or (D ^ C)
    expressions fold into gimple vals, but in that case they decrease number of
    operations by 1.

    2021-01-13  Jakub Jelinek  <ja...@redhat.com>

            PR tree-optimization/96691
            * match.pd ((~X | C) ^ D -> (X | C) ^ (~D ^ C),
            (~X & C) ^ D -> (X & C) ^ (D ^ C)): New simplifications if
            (~D ^ C) or (D ^ C) can be simplified.

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

Reply via email to