Re: [PATCH] tree-optimization/103356 Add missing (~a) == b folding for _Bool

2022-11-26 Thread Richard Biener via Gcc-patches
> Am 26.11.2022 um 17:42 schrieb apinski--- via Gcc-patches > : > > From: Andrew Pinski > > 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. Ok. Richard > Thanks, > Andrew Pinski > >PR

[PATCH] tree-optimization/103356 Add missing (~a) == b folding for _Bool

2022-11-26 Thread apinski--- via Gcc-patches
From: Andrew Pinski 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 103356 gcc/ChangeLog: * match.pd: ((~a) == b -> a ^ b): New pattern. gcc/testsuite/ChangeL