ipa-fnsummary.c: Include tree-into-ssa.h.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 3 Dec 2019 20:29:35 +0000 (21:29 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 3 Dec 2019 20:29:35 +0000 (20:29 +0000)
* ipa-fnsummary.c: Include tree-into-ssa.h.
(compute_fn_summary): Call update_ssa.

From-SVN: r278946

gcc/ChangeLog
gcc/ipa-fnsummary.c

index 89bdf3b43e1c5cf5e4f14975861e410fa6256cbb..cffe0fb58a917a20d7187ae5c7e46c4e615c91f0 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-fnsummary.c: Include tree-into-ssa.h.
+       (compute_fn_summary): Call update_ssa.
+
 2019-12-03  Jan Hubicka  <hubicka@ucw.cz>
 
        * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
index 9d16026658907c9b31faf6b9cd8eb13adb35db0a..a46b1445765f7001d43e831ef7c8c692810756fe 100644 (file)
@@ -82,6 +82,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimplify.h"
 #include "stringpool.h"
 #include "attribs.h"
+#include "tree-into-ssa.h"
 
 /* Summaries.  */
 fast_function_summary <ipa_fn_summary *, va_gc> *ipa_fn_summaries;
@@ -2891,6 +2892,10 @@ compute_fn_summary (struct cgraph_node *node, bool early)
        /* Even is_gimple_min_invariant rely on current_function_decl.  */
        push_cfun (DECL_STRUCT_FUNCTION (node->decl));
 
+       /* During IPA profile merging we may be called w/o virtual SSA form
+         built.  */
+       update_ssa (TODO_update_ssa_only_virtuals);
+
        /* Can this function be inlined at all?  */
        if (!opt_for_fn (node->decl, optimize)
           && !lookup_attribute ("always_inline",