Re: [PATCHv2] Fix PR 110874: infinite loop in gimple_bitwise_inverted_equal_p with fre

2023-08-03 Thread Richard Biener via Gcc-patches
On Thu, Aug 3, 2023 at 6:41 PM Andrew Pinski via Gcc-patches wrote: > > This changes gimple_bitwise_inverted_equal_p to use a 2 different match > patterns > to try to match bit_not wrapped with a possible nop_convert and a comparison > also wrapped with a possible nop_convert. This is to avoid be

[PATCHv2] Fix PR 110874: infinite loop in gimple_bitwise_inverted_equal_p with fre

2023-08-03 Thread Andrew Pinski via Gcc-patches
This changes gimple_bitwise_inverted_equal_p to use a 2 different match patterns to try to match bit_not wrapped with a possible nop_convert and a comparison also wrapped with a possible nop_convert. This is to avoid being recursive. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressi