+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
$(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)
#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
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. */
*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;
}
"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,