Update SSA after AutoPGO early inlining (PR ipa/65972).

2017-04-19  Richard Biener  <rguenther@suse.de>

	PR ipa/65972
	* auto-profile.c (afdo_vpt_for_early_inline): Update SSA
	when needed by AutoPGO.

From-SVN: r246996
This commit is contained in:
Richard Biener 2017-04-19 12:06:35 +00:00 committed by Martin Liska
parent 0f605f729e
commit 664306b9d8
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-04-19 Richard Biener <rguenther@suse.de>
PR ipa/65972
* auto-profile.c (afdo_vpt_for_early_inline): Update SSA
when needed by AutoPGO.
2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
PR lto/50345

View File

@ -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;
}