[Bug tree-optimization/96782] Failure to optimize comparison with bitwise not-ed with self
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 4 09:37:54 GMT 2021
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 <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:ad64e807ffca93e927b68f1aa0cea54dacbe9afd
commit r11-6433-gad64e807ffca93e927b68f1aa0cea54dacbe9afd
Author: Jakub Jelinek <jakub@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 <jakub@redhat.com>
PR tree-optimization/96782
* match.pd (x == ~x -> false, x != ~x -> true): New
simplifications.
* gcc.dg/tree-ssa/pr96782.c: New test.
More information about the Gcc-bugs
mailing list