]> gcc.gnu.org Git - gcc.git/commit - gcc/common.opt
cgraph.c (cgraph_edge): Handle inconsistent counts when setting count_scale.
authorPaul Yuan <yingbo.com@gmail.com>
Mon, 18 Aug 2008 19:02:44 +0000 (19:02 +0000)
committerSeongbae Park <spark@gcc.gnu.org>
Mon, 18 Aug 2008 19:02:44 +0000 (19:02 +0000)
commit52c76998c7109adca55106b881b9945fea860015
tree60eb8bcbffe0c58454ecbc0a68eeff80b6a19db3
parent808cc41726a4f1b3ab1b87521e086baf3de66432
cgraph.c (cgraph_edge): Handle inconsistent counts when setting count_scale.

2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
    Vinodha Ramasamy  <vinodha@google.com>

* cgraph.c (cgraph_edge): Handle inconsistent counts when setting
count_scale.
* value-prof.c (check_counter): Fix the counter if
flag_profile_correction is true.
(tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
tree_mod_subtract_transform):
Follow check_counter parameter change.
* common.opt (fprofile-correction): New option.
* mcf.c: New file.
* profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
(sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
is_inconsistent, set_bb_counts, read_profile_edge_counts): New
functions.
(compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
flag_profile_correction is set.

Co-Authored-By: Vinodha Ramasamy <vinodha@google.com>
From-SVN: r139208
gcc/ChangeLog
gcc/Makefile.in
gcc/cgraph.c
gcc/common.opt
gcc/doc/invoke.texi
gcc/profile.c
gcc/value-prof.c
This page took 0.059809 seconds and 5 git commands to generate.