]> gcc.gnu.org Git - gcc.git/commit
PHIOPT: Factor out some code from match_simplify_replacement
authorAndrew Pinski <apinski@marvell.com>
Fri, 31 Mar 2023 17:29:26 +0000 (17:29 +0000)
committerAndrew Pinski <apinski@marvell.com>
Mon, 24 Apr 2023 15:50:04 +0000 (08:50 -0700)
commit245753249c595af95a811ddb0fe572d93a5dae72
treedf1bc1818b8f8133560cc96cecdd53e2e5052553
parent7049241f6ee558cfc0b227b5a0a355ec29afd6f1
PHIOPT: Factor out some code from match_simplify_replacement

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-linux-gnu.

gcc/ChangeLog:

* tree-ssa-phiopt.cc (empty_bb_or_one_feeding_into_p):
New function.
(match_simplify_replacement): Call
empty_bb_or_one_feeding_into_p instead of doing it inline.
gcc/tree-ssa-phiopt.cc
This page took 0.056715 seconds and 5 git commands to generate.