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

2021-01-04 Thread Richard Biener
On Sun, 3 Jan 2021, Jakub Jelinek wrote: > Hi! > > x is never equal to ~x, so we can fold such comparisons to constants. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? OK. Richard. > 2021-01-03 Jakub Jelinek > > PR tree-optimization/96782 > * match.pd

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

2021-01-03 Thread Jakub Jelinek via Gcc-patches
Hi! x is never equal to ~x, so we can fold such comparisons to constants. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2021-01-03 Jakub Jelinek PR tree-optimization/96782 * match.pd (x == ~x -> false, x != ~x -> true): New simplifications. * g