mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-20 05:40:27 +08:00
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
This commit is contained in:
parent
1779dc343a
commit
dfea20f1a4
@ -1,3 +1,12 @@
|
||||
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.
|
||||
|
||||
2012-09-10 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/54520
|
||||
|
@ -2851,7 +2851,7 @@ ipa-prop.o : ipa-prop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
|
||||
$(TREE_FLOW_H) $(TM_H) $(TREE_PASS_H) $(FLAGS_H) $(TREE_H) \
|
||||
$(TREE_INLINE_H) $(GIMPLE_H) \
|
||||
$(GIMPLE_PRETTY_PRINT_H) $(LTO_STREAMER_H) \
|
||||
$(DATA_STREAMER_H) $(TREE_STREAMER_H)
|
||||
$(DATA_STREAMER_H) $(TREE_STREAMER_H) $(PARAMS_H)
|
||||
ipa-ref.o : ipa-ref.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
|
||||
langhooks.h $(GGC_H) $(TARGET_H) $(CGRAPH_H) $(TREE_H) $(TARGET_H) \
|
||||
$(TREE_FLOW_H) $(TM_H) $(TREE_PASS_H) $(FLAGS_H) $(TREE_H) $(GGC_H)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -885,6 +885,12 @@ DEFPARAM (PARAM_IPA_CP_EVAL_THRESHOLD,
|
||||
"beneficial to clone.",
|
||||
500, 0, 0)
|
||||
|
||||
DEFPARAM (PARAM_IPA_MAX_AGG_ITEMS,
|
||||
"ipa-max-agg-items",
|
||||
"Maximum number of aggregate content items for a parameter in "
|
||||
"jump functions and lattices",
|
||||
16, 0, 0)
|
||||
|
||||
/* WHOPR partitioning configuration. */
|
||||
|
||||
DEFPARAM (PARAM_LTO_PARTITIONS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user