Commit 19321415 by Martin Jambor Committed by Martin Jambor

params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.

2013-03-20  Martin Jambor  <mjambor@suse.cz>

	* params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
	* ipa-cp.c (hint_time_bonus): Add abonus for known array indices.

From-SVN: r196832
parent c6d5ff83
2013-03-20 Martin Jambor <mjambor@suse.cz>
* params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
* ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
2013-03-20 Pat Haugen <pthaugen@us.ibm.com> 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
* config/rs6000/predicates.md (indexed_address, update_address_mem * config/rs6000/predicates.md (indexed_address, update_address_mem
......
...@@ -1622,9 +1622,12 @@ devirtualization_time_bonus (struct cgraph_node *node, ...@@ -1622,9 +1622,12 @@ devirtualization_time_bonus (struct cgraph_node *node,
static int static int
hint_time_bonus (inline_hints hints) hint_time_bonus (inline_hints hints)
{ {
int result = 0;
if (hints & (INLINE_HINT_loop_iterations | INLINE_HINT_loop_stride)) if (hints & (INLINE_HINT_loop_iterations | INLINE_HINT_loop_stride))
return PARAM_VALUE (PARAM_IPA_CP_LOOP_HINT_BONUS); result += PARAM_VALUE (PARAM_IPA_CP_LOOP_HINT_BONUS);
return 0; if (hints & INLINE_HINT_array_index)
result += PARAM_VALUE (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS);
return result;
} }
/* Return true if cloning NODE is a good idea, given the estimated TIME_BENEFIT /* Return true if cloning NODE is a good idea, given the estimated TIME_BENEFIT
......
...@@ -919,6 +919,12 @@ DEFPARAM (PARAM_IPA_CP_LOOP_HINT_BONUS, ...@@ -919,6 +919,12 @@ DEFPARAM (PARAM_IPA_CP_LOOP_HINT_BONUS,
"bounds or strides known.", "bounds or strides known.",
64, 0, 0) 64, 0, 0)
DEFPARAM (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS,
"ipa-cp-array-index-hint-bonus",
"Compile-time bonus IPA-CP assigns to candidates which make an array "
"index known.",
48, 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