Re: [PATCH] MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.

2023-10-16 Thread Richard Biener
On Mon, Oct 16, 2023 at 12:00 AM Andrew Pinski wrote: > > This improves the `A CMP 0 ? A : -A` set of match patterns to use > bitwise_equal_p which allows an nop cast between signed and unsigned. > This allows catching a few extra cases which were not being caught before. > > OK? Bootstrapped and

[PATCH] MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.

2023-10-15 Thread Andrew Pinski
This improves the `A CMP 0 ? A : -A` set of match patterns to use bitwise_equal_p which allows an nop cast between signed and unsigned. This allows catching a few extra cases which were not being caught before. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: