diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index e843ddbe56b..5dca281b1df 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -40,9 +40,14 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA insn_values_to_profile function. This function is called from branch_prob in profile.c and the requested values are instrumented by it in the first compilation with -fprofile-arcs. The optimization may then read the - gathered data in the second compilation with -fbranch-probabilities (the - description of an exact way how to do it will be added here once the - code responsible for reading of the data is merged). */ + gathered data in the second compilation with -fbranch-probabilities. + The measured data is appended as REG_VALUE_PROFILE note to the instrumented + insn. The argument to the note consists of an EXPR_LIST where its + members have the following meaning (from the first to the last): + + -- type of information gathered (HIST_TYPE*) + -- the expression that is profiled + -- list of counters starting from the first one. */ static void insn_values_to_profile (rtx, unsigned *, struct histogram_value **); |