]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Respect --param ipa-max-agg-items=0
authorMartin Jambor <mjambor@suse.cz>
Thu, 19 May 2016 15:19:59 +0000 (17:19 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 19 May 2016 15:19:59 +0000 (17:19 +0200)
2016-05-19  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: r236476

gcc/ChangeLog
gcc/ipa-prop.c

index b0f1aec6ef967d69e5fb1575aaa3fdc99c2f8dbe..c6d4300d4849c9aab706a5bf2a3cf9ff18d587ac 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-19  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-19  Martin Jambor  <mjambor@suse.cz>
 
        PR ipa/70646
index 4840dda29dcb14d23ff04b380cdac1734256be9a..16afa2a610c4683e769ffdd48cfb3fb91fbeae08 100644 (file)
@@ -1374,6 +1374,9 @@ determine_known_aggregate_parts (gimple call, tree arg, tree arg_type,
   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.  */