This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc/gcc combine.c flags.h gcov-io. ...

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	rtlopt-branch
Changes by:	2002-11-21 12:07:17

Modified files:
	gcc            : combine.c flags.h gcov-io.h 
	                 libgcc2.c profile.c profile.h rtl.c rtl.h 
	                 toplev.c ChangeLog.rtlopt 
Added files:
	gcc            : vpt.h vpt.c 

Log message:
	* (vpt.o): New file.
	(toplev.o, profile.o): Add vpt.h dependecy.
	* vpt.h: New.
	* vpt.c: New.
	* combine.c (distribute_notes): Handle REG_VALUE_HISTOGRAM note.
	* flags.h (flag_value_histograms): Declare.
	* gcov-io.h (GCOV_TAG_VALUE_HISTOGRAMS): New.
	(struct function_info): Add n_value_histogram_counters field.
	(struct gcov_info): Add value_counts and n_value_counts fields.
	* libgcc2.c (gcov_exit, __gcov_flush): Write out value histograms.
	* profile.c: Include vpt.h.
	(struct function_list): Add value_counters field.
	(value_histograms_label): New.
	(gen_loop_profiler): Deleted.
	(gen_interval_profiler, gen_range_profiler, gen_pow2_profiler,
	gen_one_value_profiler): New.
	(get_histogram_counts, instrument_loops, compute_loop_histograms,
	init_branch_prob): Modified.
	(index_counts_file): Fix mistakes.
	(instrument_values, compute_value_histograms): New.
	(branch_prob): Call them.
	(create_profiler): Emit requiered structures.
	* profile.h (struct profile_info): Add count_value_counters,
	count_value_counters_now and have_value_histograms fields.
	* rtl.c (reg_note_name): Add REG_VALUE_HISTOGRAM.
	* rtl.h (enum reg_note): Ditto.
	* toplev.c: Include vpt.h.
	(enum dump_file_index, dump_file): Add vpt dump file.
	(flag_value_histograms, flag_value_profile_transformations): New.
	(lang_independent_options): Add them.
	(rest_of_compilation): Add vpt pass.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]