* ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
From-SVN: r202370
This commit is contained in:
parent
c34c46dd82
commit
7b395dddb5
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue