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 143af9bf5d76c7be5e825904b3dc4ebd7dbf168c..85025d4a402c31d7c6998db81a5d1087ea8a3648 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 4b21340c6f0c1411aca593aff00f0cec1369bd4c..4e498dc6b0ec817457e927b952d1e458052156fc 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;
     }