Update SSA after AutoPGO early inlining (PR ipa/65972).
authorRichard Biener <rguenther@suse.de>
Wed, 19 Apr 2017 12:06:35 +0000 (12:06 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 19 Apr 2017 12:06:35 +0000 (12:06 +0000)
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

gcc/ChangeLog
gcc/auto-profile.c

index 143af9b..85025d4 100644 (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
index 4b21340..4e498dc 100644 (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;
     }