aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2016-05-18 15:06:24 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2016-05-18 15:06:24 +0200
commit29799e9db1ee2bcb8113d96adc965c7a1a284aaa (patch)
tree7fc948841a48553e076a071352a7d9ad33acc5a8 /gcc/ipa-prop.c
parent848a392af3fffc1d66fc359861e02f8f5edf0ab6 (diff)
downloadgcc-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
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c3
1 files changed, 3 insertions, 0 deletions
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. */