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
This commit is contained in:
Martin Jambor 2016-05-18 15:06:24 +02:00 committed by Martin Jambor
parent 848a392af3
commit 29799e9db1
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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. */