diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-12-03 21:29:35 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-12-03 20:29:35 +0000 |
commit | ac0573de6cc4099d40263008ace3593d0d0647aa (patch) | |
tree | 253281be4145c192245a81de51e6fc654d19edd9 /gcc/ipa-fnsummary.c | |
parent | ee1de08d4d22648cf3168caa60e283135755da85 (diff) | |
download | gcc-ac0573de6cc4099d40263008ace3593d0d0647aa.zip gcc-ac0573de6cc4099d40263008ace3593d0d0647aa.tar.gz gcc-ac0573de6cc4099d40263008ace3593d0d0647aa.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-fnsummary.c')
-rw-r--r-- | gcc/ipa-fnsummary.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 9d16026..a46b144 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_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", |