Lines Matching refs:histogram
70 to profile. There are different histogram types (see HIST_TYPE_* in
71 value-prof.h) and each transformation can request one or more histogram
74 required for the different histogram types.
95 * Only one histogram of each type can be associated with a statement.
111 /* Allocate histogram value. */
124 /* Hash value for histogram. */
140 /* Set histogram for STMT. */
163 /* Get histogram list for STMT. */
174 /* Add histogram for STMT. */
185 /* Remove histogram HIST from STMT's histogram list. */
208 /* Lookup histogram of type TYPE in the STMT. */
477 because histogram hashtab relies on stmt field value
488 /* Helper function for verify_histograms. For each histogram reachable via htab
500 error ("dead histogram");
529 error ("histogram value statement does not correspond to "
544 /* Helper function for verify_histograms. For each histogram reachable via htab
746 /* Return the n-th value count of TOPN_VALUE histogram. If
784 fprintf (dump_file, "Histogram value dropped in '%s' mode\n",
792 fprintf (dump_file, "Histogram value dropped in '%s' mode\n",
815 histogram_value histogram;
834 histogram = gimple_histogram_value_of_type (cfun, stmt,
836 if (!histogram)
839 if (!get_nth_most_common_value (stmt, "divmod", histogram, &val, &count,
843 value = histogram->hvalue.value;
844 gimple_remove_histogram_value (cfun, stmt, histogram);
966 histogram_value histogram;
986 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_POW2);
987 if (!histogram)
990 value = histogram->hvalue.value;
991 wrong_values = histogram->hvalue.counters[0];
992 count = histogram->hvalue.counters[1];
994 gimple_remove_histogram_value (cfun, stmt, histogram);
1131 histogram_value histogram;
1152 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INTERVAL);
1153 if (!histogram)
1158 for (i = 0; i < histogram->hdata.intvl.steps; i++)
1159 all += histogram->hvalue.counters[i];
1161 wrong_values += histogram->hvalue.counters[i];
1162 wrong_values += histogram->hvalue.counters[i+1];
1163 steps = histogram->hdata.intvl.steps;
1165 count1 = histogram->hvalue.counters[0];
1166 count2 = histogram->hvalue.counters[1];
1170 gimple_remove_histogram_value (cfun, stmt, histogram);
1182 for (i = 0; i < histogram->hdata.intvl.steps; i++)
1184 count += histogram->hvalue.counters[i];
1192 gimple_remove_histogram_value (cfun, stmt, histogram);
1455 histogram_value histogram;
1469 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INDIR_CALL);
1470 if (!histogram)
1474 all = histogram->hvalue.counters[0];
1478 if (!get_nth_most_common_value (NULL, "indirect call", histogram, &val,
1642 histogram_value histogram;
1664 histogram = gimple_histogram_value_of_type (cfun, stmt,
1666 if (!histogram)
1669 if (!get_nth_most_common_value (stmt, "stringops", histogram, &val, &count,
1673 gimple_remove_histogram_value (cfun, stmt, histogram);
1740 histogram_value histogram;
1741 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_AVERAGE);
1743 if (!histogram)
1745 else if (!histogram->hvalue.counters[1])
1748 gimple_remove_histogram_value (cfun, stmt, histogram);
1753 size = ((histogram->hvalue.counters[0]
1754 + histogram->hvalue.counters[1] / 2)
1755 / histogram->hvalue.counters[1]);
1761 gimple_remove_histogram_value (cfun, stmt, histogram);
1764 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_IOR);
1766 if (!histogram)
1768 else if (!histogram->hvalue.counters[0])
1770 gimple_remove_histogram_value (cfun, stmt, histogram);
1778 count = histogram->hvalue.counters[0];
1784 gimple_remove_histogram_value (cfun, stmt, histogram);