]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-inline.c
predict.c (drop_profile): New function.
authorTeresa Johnson <tejohnson@google.com>
Tue, 12 Nov 2013 15:03:28 +0000 (15:03 +0000)
committerTeresa Johnson <tejohnson@gcc.gnu.org>
Tue, 12 Nov 2013 15:03:28 +0000 (15:03 +0000)
commiteb4b92c13be5ec67ca43b701da932835bdd1e4b7
treedd1e6b187157352f6f08341a70daaedf473980fa
parenta720b48e18470367633194fff2107ba0b131d3bb
predict.c (drop_profile): New function.

2013-11-12  Teresa Johnson  <tejohnson@google.com>
    Jan Hubicka  <jh@suse.cz>

* predict.c (drop_profile): New function.
(handle_missing_profiles): Ditto.
(counts_to_freqs): Don't overwrite estimated frequencies
when function has no profile counts.
* predict.h (handle_missing_profiles): Declare.
* tree-inline.c (freqs_to_counts): New function.
(copy_cfg_body): Invoke freqs_to_counts as needed.
* tree-profile.c (tree_profiling): Invoke handle_missing_profiles.

Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r204704
gcc/ChangeLog
gcc/predict.c
gcc/predict.h
gcc/tree-inline.c
gcc/tree-profile.c