Commit b065b669 by Jan Hubicka Committed by Jan Hubicka

cgraphunit.c (analyze_functions): Use opt_for_fn.

	* cgraphunit.c (analyze_functions): Use opt_for_fn.
	* cgraph.h (cgraph_node::optimize_for_size_p): Likewise.

From-SVN: r217668
parent a6b1490d
2014-11-17 Jan Hubicka <hubicka@ucw.cz>
* cgraphunit.c (analyze_functions): Use opt_for_fn.
* cgraph.h (cgraph_node::optimize_for_size_p): Likewise.
2014-11-17 Jan Hubicka <hubicka@ucw.cz>
* cgraph.c (symbol_table::create_edge): Use opt_for_fn.
(cgraph_node::cannot_return_p): Likewise.
(cgraph_edge::cannot_lead_to_return_p): Likewise.
......@@ -2720,7 +2720,7 @@ cgraph_node::mark_force_output (void)
inline bool
cgraph_node::optimize_for_size_p (void)
{
if (optimize_size)
if (opt_for_fn (decl, optimize_size))
return true;
if (frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED)
return true;
......
......@@ -1001,7 +1001,7 @@ analyze_functions (void)
for (edge = cnode->callees; edge; edge = edge->next_callee)
if (edge->callee->definition)
enqueue_node (edge->callee);
if (optimize && flag_devirtualize)
if (optimize && opt_for_fn (cnode->decl, flag_devirtualize))
{
cgraph_edge *next;
......
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