From: Richard Biener Date: Wed, 19 Apr 2017 12:06:35 +0000 (+0000) Subject: Update SSA after AutoPGO early inlining (PR ipa/65972). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=664306b9d8b32f6d1fcc6fdd9ba19712d494b3ee;p=gcc.git Update SSA after AutoPGO early inlining (PR ipa/65972). 2017-04-19 Richard Biener PR ipa/65972 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA when needed by AutoPGO. From-SVN: r246996 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 143af9bf5d7..85025d4a402 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 4b21340c6f0..4e498dc6b0e 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; }