From 664306b9d8b32f6d1fcc6fdd9ba19712d494b3ee Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 19 Apr 2017 12:06:35 +0000 Subject: 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 --- gcc/auto-profile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/auto-profile.c') diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 4b21340..4e498dc 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; } -- cgit v1.1