diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 143af9bf5d76..85025d4a402c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-04-19 Richard Biener + + PR ipa/65972 + * auto-profile.c (afdo_vpt_for_early_inline): Update SSA + when needed by AutoPGO. + 2017-04-19 Paulo J. Matos PR lto/50345 diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 4b21340c6f0c..4e498dc6b0ec 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1511,7 +1511,9 @@ afdo_vpt_for_early_inline (stmt_set *promoted_stmts) if (has_vpt) { - optimize_inline_calls (current_function_decl); + unsigned todo = optimize_inline_calls (current_function_decl); + if (todo & TODO_update_ssa_any) + update_ssa (TODO_update_ssa); return true; }