Commit dfea20f1 by Martin Jambor Committed by Martin Jambor

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
parent 1779dc34
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> 2012-09-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/54520 PR tree-optimization/54520
......
...@@ -2851,7 +2851,7 @@ ipa-prop.o : ipa-prop.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ ...@@ -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_FLOW_H) $(TM_H) $(TREE_PASS_H) $(FLAGS_H) $(TREE_H) \
$(TREE_INLINE_H) $(GIMPLE_H) \ $(TREE_INLINE_H) $(GIMPLE_H) \
$(GIMPLE_PRETTY_PRINT_H) $(LTO_STREAMER_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 \ ipa-ref.o : ipa-ref.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
langhooks.h $(GGC_H) $(TARGET_H) $(CGRAPH_H) $(TREE_H) $(TARGET_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) $(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 ...@@ -37,6 +37,7 @@ along with GCC; see the file COPYING3. If not see
#include "lto-streamer.h" #include "lto-streamer.h"
#include "data-streamer.h" #include "data-streamer.h"
#include "tree-streamer.h" #include "tree-streamer.h"
#include "params.h"
/* Intermediate information about a parameter that is only useful during the /* Intermediate information about a parameter that is only useful during the
...@@ -1145,9 +1146,6 @@ get_ssa_def_if_simple_copy (tree rhs) ...@@ -1145,9 +1146,6 @@ get_ssa_def_if_simple_copy (tree rhs)
return 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 /* Simple linked list, describing known contents of an aggregate beforere
call. */ call. */
...@@ -1327,8 +1325,8 @@ determine_known_aggregate_parts (gimple call, tree arg, ...@@ -1327,8 +1325,8 @@ determine_known_aggregate_parts (gimple call, tree arg,
*p = n; *p = n;
item_count++; item_count++;
if (const_count == IPA_MAX_AFF_JF_ITEMS if (const_count == PARAM_VALUE (PARAM_IPA_MAX_AGG_ITEMS)
|| item_count == 2 * IPA_MAX_AFF_JF_ITEMS) || item_count == 2 * PARAM_VALUE (PARAM_IPA_MAX_AGG_ITEMS))
break; break;
} }
......
...@@ -885,6 +885,12 @@ DEFPARAM (PARAM_IPA_CP_EVAL_THRESHOLD, ...@@ -885,6 +885,12 @@ DEFPARAM (PARAM_IPA_CP_EVAL_THRESHOLD,
"beneficial to clone.", "beneficial to clone.",
500, 0, 0) 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. */ /* WHOPR partitioning configuration. */
DEFPARAM (PARAM_LTO_PARTITIONS, DEFPARAM (PARAM_LTO_PARTITIONS,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment