Re: [PATCH] PHIOPT: small refactoring of match_simplify_replacement.

2023-05-02 Thread Richard Biener via Gcc-patches
On Sun, Apr 30, 2023 at 11:14 PM Andrew Pinski via Gcc-patches wrote: > > When I added diamond shaped form bb to match_simplify_replacement, > I copied the code to move the statement rather than factoring it > out to a new function. This does the refactoring to a new function > to avoid the duplic

[PATCH] PHIOPT: small refactoring of match_simplify_replacement.

2023-04-30 Thread Andrew Pinski via Gcc-patches
When I added diamond shaped form bb to match_simplify_replacement, I copied the code to move the statement rather than factoring it out to a new function. This does the refactoring to a new function to avoid the duplicated code. It will make adding support for having two statements to move easier (