cfgexpand.c (expand_gimple_tailcall): Initialize profile of new edge.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 5 Jun 2017 17:41:32 +0000 (19:41 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 5 Jun 2017 17:41:32 +0000 (17:41 +0000)
commitaea5e79a63f965a9ed5fd2ef1943e3865495e987
tree52c60043f6ed486d65cb1a8a38cb71979166465c
parent2f20e7db2caea4909ddff539b2419c9f34c907c4
cfgexpand.c (expand_gimple_tailcall): Initialize profile of new edge.

* cfgexpand.c (expand_gimple_tailcall): Initialize profile of
new edge.
* ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
profile in callgraph edge.
* profile-count.h (apply_probability): If THIS is 0, then result is 0
(apply_scale): Likewise.
* tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
Also scale profile when inlining function with zero profile.
(initialize_cfun): Update exit block profile even when it is zero.
* tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
when profile is read.

From-SVN: r248885
gcc/ChangeLog
gcc/cfgexpand.c
gcc/ipa-inline.c
gcc/profile-count.h
gcc/shrink-wrap.c
gcc/tree-inline.c
gcc/tree-ssa-threadupdate.c