Re: [PATCH] Match: Improve inverted_equal_p for bool and `^` and `==` [PR113186]

2024-01-04 Thread Jeff Law
On 12/31/23 21:03, Andrew Pinski wrote: For boolean types, `a ^ b` is a valid form for `a != b`. This means for gimple_bitwise_inverted_equal_p, we catch some inverted value forms. This patch extends inverted_equal_p to allow matching of `^` with the corresponding `==`. Note in the testcase

[PATCH] Match: Improve inverted_equal_p for bool and `^` and `==` [PR113186]

2023-12-31 Thread Andrew Pinski
For boolean types, `a ^ b` is a valid form for `a != b`. This means for gimple_bitwise_inverted_equal_p, we catch some inverted value forms. This patch extends inverted_equal_p to allow matching of `^` with the corresponding `==`. Note in the testcase provided we used to optimize in GCC 12 to just