diff options
author | Richard Biener <rguenther@suse.de> | 2017-04-19 12:06:35 +0000 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-04-19 12:06:35 +0000 |
commit | 664306b9d8b32f6d1fcc6fdd9ba19712d494b3ee (patch) | |
tree | 971273331a7c89124e9a9bbadf1b7b459b8f2450 | |
parent | 0f605f729e2059b7b2792e52fb9c7a3f4df7cd1c (diff) | |
download | gcc-664306b9d8b32f6d1fcc6fdd9ba19712d494b3ee.tar.gz |
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/auto-profile.c | 4 |
2 files changed, 9 insertions, 1 deletions
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 <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 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; } |