From ac0573de6cc4099d40263008ace3593d0d0647aa Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 3 Dec 2019 21:29:35 +0100 Subject: [PATCH] ipa-fnsummary.c: Include tree-into-ssa.h. * ipa-fnsummary.c: Include tree-into-ssa.h. (compute_fn_summary): Call update_ssa. From-SVN: r278946 --- gcc/ChangeLog | 5 +++++ gcc/ipa-fnsummary.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89bdf3b43e1..cffe0fb58a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-12-03 Jan Hubicka + + * ipa-fnsummary.c: Include tree-into-ssa.h. + (compute_fn_summary): Call update_ssa. + 2019-12-03 Jan Hubicka * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 9d160266589..a46b1445765 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -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_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", -- 2.30.2