From 6e885ee3ff4f358d7a7e84b8687f27a61101a25f Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Wed, 30 Jul 2003 21:23:34 +0200 Subject: combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes. * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes. * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER, GCOV_N_VALUE_COUNTERS): New. * profile.c (compute_value_histograms): New static function. (branch_prob): Read back the value histograms. * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note. * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note. * value-prof.c: Add comment on reading the profile. * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New. * doc/invoke.texi (-fprofile-values): Document behavior with -fbranch-probabilities. From-SVN: r69969 --- gcc/rtl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/rtl.h') diff --git a/gcc/rtl.h b/gcc/rtl.h index 9d3b0dc..8fb2574 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -684,6 +684,11 @@ enum reg_note return. */ REG_BR_PROB, + /* REG_VALUE_PROFILE is attached when the profile is read in to an insn + before that the code to profile the value is inserted. It contains + the results of profiling. */ + REG_VALUE_PROFILE, + /* Attached to a call insn; indicates that the call is malloc-like and that the pointer returned cannot alias anything else. */ REG_NOALIAS, -- cgit v1.1