aboutsummaryrefslogtreecommitdiff
path: root/gcc/auto-profile.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-04-19 12:06:35 +0000
committerMartin Liska <marxin@gcc.gnu.org>2017-04-19 12:06:35 +0000
commit664306b9d8b32f6d1fcc6fdd9ba19712d494b3ee (patch)
tree971273331a7c89124e9a9bbadf1b7b459b8f2450 /gcc/auto-profile.c
parent0f605f729e2059b7b2792e52fb9c7a3f4df7cd1c (diff)
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
Diffstat (limited to 'gcc/auto-profile.c')
-rw-r--r--gcc/auto-profile.c4
1 files changed, 3 insertions, 1 deletions
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;
}