From: Martin Liska Date: Mon, 29 May 2017 09:13:20 +0000 (+0200) Subject: Backport r246996 X-Git-Tag: releases/gcc-5.5.0~320 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a845b923622e302039b3b824503c428ffbbb39b2;p=thirdparty%2Fgcc.git Backport r246996 2017-05-29 Martin Liska Backport from mainline 2017-04-19 Richard Biener PR ipa/65972 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA when needed by AutoPGO. From-SVN: r248568 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb6fa301637e..ee556b7e7e31 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2017-05-29 Martin Liska + + Backport from mainline + 2017-04-19 Richard Biener + + PR ipa/65972 + * auto-profile.c (afdo_vpt_for_early_inline): Update SSA + when needed by AutoPGO. + 2017-05-29 Martin Liska Backport from mainline diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index ba2d5ab654e6..5e212dd05797 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1469,7 +1469,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; }