diff options
author | Andrew Pinski <apinski@marvell.com> | 2023-03-31 17:29:26 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2023-04-24 08:50:04 -0700 |
commit | 245753249c595af95a811ddb0fe572d93a5dae72 (patch) | |
tree | df1bc1818b8f8133560cc96cecdd53e2e5052553 /gcc/value-range.h | |
parent | 7049241f6ee558cfc0b227b5a0a355ec29afd6f1 (diff) | |
download | gcc-245753249c595af95a811ddb0fe572d93a5dae72.zip gcc-245753249c595af95a811ddb0fe572d93a5dae72.tar.gz gcc-245753249c595af95a811ddb0fe572d93a5dae72.tar.bz2 |
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.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions