Re: [PATCH] Fix part of PR 110293: `A NEEQ (A NEEQ CST)` part

2023-07-13 Thread Richard Biener via Gcc-patches
On Wed, Jul 12, 2023 at 6:09 PM Andrew Pinski via Gcc-patches wrote: > > This fixes part of PR 110293, for the outer comparison case > being `!=` or `==`. In turn PR 110539 is able to be optimized > again as the if statement for `(a&1) == ((a & 1) != 0)` gets optimized > to `false` early enough t

[PATCH] Fix part of PR 110293: `A NEEQ (A NEEQ CST)` part

2023-07-12 Thread Andrew Pinski via Gcc-patches
This fixes part of PR 110293, for the outer comparison case being `!=` or `==`. In turn PR 110539 is able to be optimized again as the if statement for `(a&1) == ((a & 1) != 0)` gets optimized to `false` early enough to allow FRE/DOM to do a CSE for memory store/load. OK? Bootstrapped and tested