* cfgexpand.c (expand_gimple_tailcall): Initialize profile of
commit25d2128b777b9b9778836c6eb5e6d1bb646ae3a6
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2017 17:41:32 +0000 (5 17:41 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jun 2017 17:41:32 +0000 (5 17:41 +0000)
tree52c60043f6ed486d65cb1a8a38cb71979166465c
parent009cb465096abb72d28977b57867916583165ca2
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248885 138bc75d-0d04-0410-961f-82ee72b054a4
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