diff options
author | Martin Jambor <mjambor@suse.cz> | 2016-05-18 15:06:24 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2016-05-18 15:06:24 +0200 |
commit | 29799e9db1ee2bcb8113d96adc965c7a1a284aaa (patch) | |
tree | 7fc948841a48553e076a071352a7d9ad33acc5a8 | |
parent | 848a392af3fffc1d66fc359861e02f8f5edf0ab6 (diff) | |
download | gcc-29799e9db1ee2bcb8113d96adc965c7a1a284aaa.zip gcc-29799e9db1ee2bcb8113d96adc965c7a1a284aaa.tar.gz gcc-29799e9db1ee2bcb8113d96adc965c7a1a284aaa.tar.bz2 |
Respect --param ipa-max-agg-items=0
2016-05-18 Martin Jambor <mjambor@suse.cz>
PR ipa/70646
* ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
From-SVN: r236390
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-prop.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b398868..1f6d29b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,12 @@ 2016-05-18 Martin Jambor <mjambor@suse.cz> PR ipa/70646 + * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early + if parameter PARAM_IPA_MAX_AGG_ITEMS is zero. + +2016-05-18 Martin Jambor <mjambor@suse.cz> + + PR ipa/70646 * ipa-inline.h (condition): New field size. * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it for comaprison and store it into the new condition. diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 65482ba..f02ec47 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -1414,6 +1414,9 @@ determine_locally_known_aggregate_parts (gcall *call, tree arg, bool check_ref, by_ref; ao_ref r; + if (PARAM_VALUE (PARAM_IPA_MAX_AGG_ITEMS) == 0) + return; + /* The function operates in three stages. First, we prepare check_ref, r, arg_base and arg_offset based on what is actually passed as an actual argument. */ |