Commit 7b395ddd by Jan Hubicka Committed by Jan Hubicka

* ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.

From-SVN: r202370
parent c34c46dd
2013-09-08 Jan Hubicka <jh@suse.cz>
* ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
2013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
* ira.c (update_equiv_regs): Only call set_paradoxical_subreg
......
......@@ -206,7 +206,7 @@ walk_polymorphic_call_targets (pointer_set_t *reachable_call_targets,
{
if (targets.length() <= 1)
{
cgraph_node *target;
cgraph_node *target, *node = edge->caller;
if (targets.length () == 1)
target = targets[0];
else
......@@ -222,8 +222,8 @@ walk_polymorphic_call_targets (pointer_set_t *reachable_call_targets,
edge = cgraph_make_edge_direct (edge, target);
if (cgraph_state != CGRAPH_STATE_IPA_SSA)
cgraph_redirect_edge_call_stmt_to_callee (edge);
else
inline_update_overall_summary (edge->caller);
else if (inline_summary_vec)
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