Re: [PATCH] PHIOPT: Move two_value_replacement to match.pd

2023-04-28 Thread Richard Biener via Gcc-patches
On Fri, Apr 28, 2023 at 5:31 AM Andrew Pinski via Gcc-patches wrote: > > This patch converts two_value_replacement function > into a match.pd pattern. > It is a direct translation with only one minor change, > does not check for the {0,+-1} case as that is handled > before in match.pd so there is

[PATCH] PHIOPT: Move two_value_replacement to match.pd

2023-04-27 Thread Andrew Pinski via Gcc-patches
This patch converts two_value_replacement function into a match.pd pattern. It is a direct translation with only one minor change, does not check for the {0,+-1} case as that is handled before in match.pd so there is no reason to do the extra check for it. OK? Bootstrapped and tested on x86_64-lin