diff options
author | Martin Jambor <mjambor@suse.cz> | 2012-09-10 17:58:57 +0200 |
---|---|---|
committer | Martin Jambor <jamborm@gcc.gnu.org> | 2012-09-10 17:58:57 +0200 |
commit | dfea20f1a4ea6f8296f7e857d9f911474ae278fa (patch) | |
tree | d98ddf774cf5dbbee117a38597e743b2dd829dd1 /gcc/ipa-prop.c | |
parent | 1779dc343a559d1d822e8cbcb998bcde049c5123 (diff) | |
download | gcc-dfea20f1a4ea6f8296f7e857d9f911474ae278fa.zip gcc-dfea20f1a4ea6f8296f7e857d9f911474ae278fa.tar.gz gcc-dfea20f1a4ea6f8296f7e857d9f911474ae278fa.tar.bz2 |
params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
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.
From-SVN: r191150
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 141d602..8ee871c 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; } |