Commit ba8978d0 by Jan Hubicka Committed by Jan Hubicka

ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing for size,…

ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing for size, reduce amount of inlining.

	* ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
	for size, reduce amount of inlining.

From-SVN: r149210
parent d4289bdd
2009-07-03 Jan Hubicka <jh@suse.cz>
* ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
for size, reduce amount of inlining.
2009-07-03 Richard Guenther <rguenther@suse.de>
PR middle-end/34163
......
......@@ -1504,7 +1504,8 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node,
continue;
}
if (cgraph_maybe_hot_edge_p (e) && leaf_node_p (e->callee))
if (cgraph_maybe_hot_edge_p (e) && leaf_node_p (e->callee)
&& optimize_function_for_speed_p (cfun))
allowed_growth = PARAM_VALUE (PARAM_EARLY_INLINING_INSNS);
/* When the function body would grow and inlining the function won't
......
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