diff options
author | Paul Yuan <yingbo.com@gmail.com> | 2008-08-18 19:02:44 +0000 |
---|---|---|
committer | Seongbae Park <spark@gcc.gnu.org> | 2008-08-18 19:02:44 +0000 |
commit | 52c76998c7109adca55106b881b9945fea860015 (patch) | |
tree | 60eb8bcbffe0c58454ecbc0a68eeff80b6a19db3 /gcc/Makefile.in | |
parent | 808cc41726a4f1b3ab1b87521e086baf3de66432 (diff) | |
download | gcc-52c76998c7109adca55106b881b9945fea860015.zip gcc-52c76998c7109adca55106b881b9945fea860015.tar.gz gcc-52c76998c7109adca55106b881b9945fea860015.tar.bz2 |
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
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 3c6318e..e50c2d5 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1112,6 +1112,7 @@ OBJS-common = \ loop-unroll.o \ loop-unswitch.o \ lower-subreg.o \ + mcf.o \ mode-switching.o \ modulo-sched.o \ omega.o \ @@ -2717,7 +2718,9 @@ var-tracking.o : var-tracking.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ profile.o : profile.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) \ $(TREE_H) $(FLAGS_H) output.h $(REGS_H) $(EXPR_H) $(FUNCTION_H) \ $(TOPLEV_H) $(COVERAGE_H) $(TREE_FLOW_H) value-prof.h cfghooks.h \ - $(CFGLOOP_H) $(TIMEVAR_H) tree-pass.h + $(CFGLOOP_H) $(TIMEVAR_H) tree-pass.h profile.h +mcf.o : mcf.c profile.h $(CONFIG_H) $(SYSTEM_H) $(TM_H) coretypes.h \ + $(BASIC_BLOCK_H) output.h langhooks.h $(GCOV_IO_H) $(TREE_H) tree-profile.o : tree-profile.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(RTL_H) $(TREE_H) $(FLAGS_H) output.h $(REGS_H) $(EXPR_H) \ $(FUNCTION_H) $(TOPLEV_H) $(COVERAGE_H) $(TREE_H) value-prof.h $(TREE_DUMP_H) \ @@ -3213,7 +3216,7 @@ GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \ $(srcdir)/emit-rtl.c $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \ $(srcdir)/function.c $(srcdir)/except.h \ $(srcdir)/gcse.c $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \ - $(srcdir)/profile.c $(srcdir)/regclass.c \ + $(srcdir)/profile.c $(srcdir)/regclass.c $(srcdir)/mcf.c \ $(srcdir)/reg-stack.c $(srcdir)/cfglayout.c $(srcdir)/cfglayout.h \ $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \ $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \ |