Commit 856a1588 by Jan Hubicka Committed by Jan Hubicka

ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA summary generation.


	* ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
	summary generation.

From-SVN: r202380
parent 4f4b0b73
2013-09-08 Jan Hubicka <jh@suse.cz>
* ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
summary generation.
2013-09-08 Jeff Law <law@redhat.com>
PR bootstrap/58340
......
......@@ -220,9 +220,9 @@ walk_polymorphic_call_targets (pointer_set_t *reachable_call_targets,
edge->caller->symbol.order,
cgraph_node_name (target), target->symbol.order);
edge = cgraph_make_edge_direct (edge, target);
if (cgraph_state != CGRAPH_STATE_IPA_SSA)
if (!inline_summary_vec && edge->call_stmt)
cgraph_redirect_edge_call_stmt_to_callee (edge);
else if (inline_summary_vec)
else
inline_update_overall_summary (node);
}
}
......
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