aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-prop.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2012-09-10 15:58:57 +0000
committerMartin Jambor <mjambor@suse.cz>2012-09-10 15:58:57 +0000
commit20851f5bd8f9803c84419734d8d1fc05fcc5217a (patch)
treed98ddf774cf5dbbee117a38597e743b2dd829dd1 /gcc/ipa-prop.c
parent63cd082259728865c089361c1c3bb7be0f2d38ff (diff)
2012-09-10 Martin Jambor <mjambor@suse.cz>
* params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter. * ipa-prop.c: Include params.h. (IPA_MAX_AFF_JF_ITEMS): Removed. (determine_known_aggregate_parts): Use param value of PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS. * Makefile.in (ipa-prop.o): Add PARAMS_H dependency. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191150 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r--gcc/ipa-prop.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 141d602d6c7..8ee871cfe62 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see
#include "lto-streamer.h"
#include "data-streamer.h"
#include "tree-streamer.h"
+#include "params.h"
/* Intermediate information about a parameter that is only useful during the
@@ -1145,9 +1146,6 @@ get_ssa_def_if_simple_copy (tree rhs)
return rhs;
}
-/* TODO: Turn this into a PARAM. */
-#define IPA_MAX_AFF_JF_ITEMS 16
-
/* Simple linked list, describing known contents of an aggregate beforere
call. */
@@ -1327,8 +1325,8 @@ determine_known_aggregate_parts (gimple call, tree arg,
*p = n;
item_count++;
- if (const_count == IPA_MAX_AFF_JF_ITEMS
- || item_count == 2 * IPA_MAX_AFF_JF_ITEMS)
+ if (const_count == PARAM_VALUE (PARAM_IPA_MAX_AGG_ITEMS)
+ || item_count == 2 * PARAM_VALUE (PARAM_IPA_MAX_AGG_ITEMS))
break;
}