commit | f9378e3cc390f9bcc310ce206c6773a817aff2ca | [log] [tgz] |
---|---|---|
author | Andrew Pinski <apinski@marvell.com> | Sat Nov 26 07:37:40 2022 +0000 |
committer | Andrew Pinski <apinski@marvell.com> | Sat Nov 26 18:00:43 2022 +0000 |
tree | 551a2382aab49fe3e2feb17128a22a3f4f6556f5 | |
parent | d769c5040874bf9546f2524f3f1d2a894165f92a [diff] |
tree-optimization/103356 Add missing (~a) == b folding for _Bool The following makes sure to fold (~a) == b to a ^ b for truth values. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. Thanks, Andrew Pinski PR tree-optimization/103356 gcc/ChangeLog: * match.pd: ((~a) == b -> a ^ b): New pattern. gcc/testsuite/ChangeLog: * gcc.dg/pr103356-1.c: New test.