Re: [PATCH 4/6] PHIOPT: Factor out some code from match_simplify_replacement

2023-04-24 Thread Richard Biener via Gcc-patches
On Sun, Apr 23, 2023 at 12:11 AM Andrew Pinski via Gcc-patches wrote: > > This factors out the code checking if we have an empty bb > or one statement that feeds into the phi so it can be used > when adding diamond shaped bb form to match_simplify_replacement > in the next patch. Also allows for s

[PATCH 4/6] PHIOPT: Factor out some code from match_simplify_replacement

2023-04-22 Thread Andrew Pinski via Gcc-patches
This factors out the code checking if we have an empty bb or one statement that feeds into the phi so it can be used when adding diamond shaped bb form to match_simplify_replacement in the next patch. Also allows for some improvements in the next patches too. OK? Bootstrapped and tested on x86_64-