diff options
author | Martin Jambor <mjambor@suse.cz> | 2022-12-14 00:33:06 +0100 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2022-12-14 00:58:37 +0100 |
commit | 8a263116d4375892bf67ceaaf2575935cd99edd0 (patch) | |
tree | 67aed72dc49c41e69ae48acb54274b42a9df4967 /contrib/mark_spam.py | |
parent | f2cf4c6121d2b350bb66ed6763e81b77a585846d (diff) | |
download | gcc-8a263116d4375892bf67ceaaf2575935cd99edd0.zip gcc-8a263116d4375892bf67ceaaf2575935cd99edd0.tar.gz gcc-8a263116d4375892bf67ceaaf2575935cd99edd0.tar.bz2 |
ipa: Avoid looking for IPA-SRA replacements where there are none
While modifying the code, I realized that we do look into statements
even when there are no replacements. This patch adds the necessary
early bail-outs to avoid that.
ipa_param_body_adjustments::modify_call_stmt cannot have the same at
the very beginning because calls can still contain otherwise removed
parameters that need to be removed from the statements too.
gcc/ChangeLog:
2022-11-11 Martin Jambor <mjambor@suse.cz>
* ipa-param-manipulation.cc
(ipa_param_body_adjustments::modify_expression): Bail out early if
there are no replacements.
(ipa_param_body_adjustments::modify_assignment): Likewise.
Diffstat (limited to 'contrib/mark_spam.py')
0 files changed, 0 insertions, 0 deletions