r215963 - in /trunk/gcc: params.def profile.c t...

xur@gcc.gnu.org xur@gcc.gnu.org
Tue Oct 7 04:06:00 GMT 2014


Author: xur
Date: Tue Oct  7 04:06:12 2014
New Revision: 215963

URL: https://gcc.gnu.org/viewcvs?rev=215963&root=gcc&view=rev
Log:
2014-10-06  Rong Xu  <xur@google.com>

	* gcc/params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
	* gcc/tree-profile.c: (params.h): New include.
        (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
        and __gcov_indirect_call_topn_counters for
        indirect_call_topn_profile.
	(gimple_init_edge_profiler): New decls for 
        __gcov_indirect_call_topn_profiler.
	(gimple_gen_ic_profiler): Generate the correct profiler call.
	(gimple_gen_ic_func_profiler): Fix format.
	* gcc/value-prof.c (params.h): New include.
        (dump_histogram_value): Hanlde indirect_call_topn counters.
	(stream_in_histogram_value): Ditto.
	(gimple_indirect_call_to_profile): Use indirect_call_topn
        profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
	(gimple_find_values_to_profile): Hanlde indirect_call_topn
        counters.
	* gcc/value-prof.h (enum hist_type): Histrogram type for
        indirect_call_topn counters.
	* gcc/profile.c (instrument_values): Instrument
        indirect_call_topn counters.

Modified:
    trunk/gcc/params.def
    trunk/gcc/profile.c
    trunk/gcc/tree-profile.c
    trunk/gcc/value-prof.c
    trunk/gcc/value-prof.h



More information about the Gcc-cvs mailing list