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

--- 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:ad64e807ffca93e927b68f1aa0cea54dacbe9afd

commit r11-6433-gad64e807ffca93e927b68f1aa0cea54dacbe9afd
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Mon Jan 4 10:37:12 2021 +0100

    match.pd: Fold x == ~x to false [PR96782]

    x is never equal to ~x, so we can fold such comparisons to constants.

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

            PR tree-optimization/96782
            * match.pd (x == ~x -> false, x != ~x -> true): New
simplifications.

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

Reply via email to