This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r139208 - in /trunk/gcc: ChangeLog Makefile.in ...
- From: spark at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 18 Aug 2008 19:02:44 -0000
- Subject: r139208 - in /trunk/gcc: ChangeLog Makefile.in ...
Author: spark
Date: Mon Aug 18 19:02:44 2008
New Revision: 139208
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139208
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/cgraph.c
trunk/gcc/common.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/profile.c
trunk/gcc/value-prof.c