]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Respect --param ipa-max-agg-items=0
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 May 2016 13:06:24 +0000 (13:06 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 May 2016 13:06:24 +0000 (13:06 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236390 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-prop.c

index b39886853f6e6bd23c8f15ba35a088c8e0ab3bee..1f6d29b29d189b6e599be4efbd31816d0c91bf41 100644 (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
index 65482bad3662c046709db1c16329ceda70e6c55c..f02ec474dc97ebf2c7ae0fa4cd8e8eb622649bd3 100644 (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.  */