]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Backport r246996
authorMartin Liska <mliska@suse.cz>
Mon, 29 May 2017 09:13:20 +0000 (11:13 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 29 May 2017 09:13:20 +0000 (09:13 +0000)
2017-05-29  Martin Liska  <mliska@suse.cz>

Backport from mainline
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: r248568

gcc/ChangeLog
gcc/auto-profile.c

index cb6fa301637e0859d8f98879faca863074c6793c..ee556b7e7e31d15ab64563438f07dd2788d64854 100644 (file)
@@ -1,3 +1,12 @@
+2017-05-29  Martin Liska  <mliska@suse.cz>
+
+       Backport from mainline
+       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-05-29  Martin Liska  <mliska@suse.cz>
 
        Backport from mainline
index ba2d5ab654e633ac63f88d565d19c6c29851df3a..5e212dd05797210cdb9b597c68119658d5f0cbd2 100644 (file)
@@ -1469,7 +1469,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;
     }