diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-12-05 19:12:51 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-12-05 18:12:51 +0000 |
commit | 34fbe3f0946f88828765184ed6581bda62cdf49f (patch) | |
tree | 5a3bf82ae6bb92203c6e4922a5d694198595edc6 /gcc/tree-profile.c | |
parent | 8575d5925226a8f92ee644d6d59a2b1b93840d94 (diff) | |
download | gcc-34fbe3f0946f88828765184ed6581bda62cdf49f.zip gcc-34fbe3f0946f88828765184ed6581bda62cdf49f.tar.gz gcc-34fbe3f0946f88828765184ed6581bda62cdf49f.tar.bz2 |
cgraphclones.c (localize_profile): New function.
* cgraphclones.c (localize_profile): New function.
(cgraph_node::create_clone): Use it for partial profiles.
* common.opt (fprofile-partial-training): New flag.
* doc/invoke.texi (-fprofile-partial-training): Document.
* ipa-cp.c (update_profiling_info): For partial profiles do not
set function profile to zero.
* profile.c (compute_branch_probabilities): With partial profile
watch if edge count is zero and turn all probabilities to guessed.
(compute_branch_probabilities): For partial profiles do not apply
profile when entry count is zero.
* tree-profile.c (tree_profiling): Only do value_profile_transformations
when profile is read.
From-SVN: r279013
Diffstat (limited to 'gcc/tree-profile.c')
-rw-r--r-- | gcc/tree-profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index b4435b9..df60eda 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -785,7 +785,8 @@ tree_profiling (void) if (flag_branch_probabilities && !thunk && flag_profile_values - && flag_value_profile_transformations) + && flag_value_profile_transformations + && profile_status_for_fn (cfun) == PROFILE_READ) gimple_value_profile_transformations (); /* The above could hose dominator info. Currently there is |