Lines Matching refs:histogram
778 histogram_value histogram; in gimple_divmod_fixed_value_transform() local
797 histogram = gimple_histogram_value_of_type (cfun, stmt, in gimple_divmod_fixed_value_transform()
799 if (!histogram) in gimple_divmod_fixed_value_transform()
802 if (!get_nth_most_common_value (stmt, "divmod", histogram, &val, &count, in gimple_divmod_fixed_value_transform()
806 value = histogram->hvalue.value; in gimple_divmod_fixed_value_transform()
807 gimple_remove_histogram_value (cfun, stmt, histogram); in gimple_divmod_fixed_value_transform()
929 histogram_value histogram; in gimple_mod_pow2_value_transform() local
949 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_POW2); in gimple_mod_pow2_value_transform()
950 if (!histogram) in gimple_mod_pow2_value_transform()
953 value = histogram->hvalue.value; in gimple_mod_pow2_value_transform()
954 wrong_values = histogram->hvalue.counters[0]; in gimple_mod_pow2_value_transform()
955 count = histogram->hvalue.counters[1]; in gimple_mod_pow2_value_transform()
957 gimple_remove_histogram_value (cfun, stmt, histogram); in gimple_mod_pow2_value_transform()
1094 histogram_value histogram; in gimple_mod_subtract_transform() local
1115 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INTERVAL); in gimple_mod_subtract_transform()
1116 if (!histogram) in gimple_mod_subtract_transform()
1121 for (i = 0; i < histogram->hdata.intvl.steps; i++) in gimple_mod_subtract_transform()
1122 all += histogram->hvalue.counters[i]; in gimple_mod_subtract_transform()
1124 wrong_values += histogram->hvalue.counters[i]; in gimple_mod_subtract_transform()
1125 wrong_values += histogram->hvalue.counters[i+1]; in gimple_mod_subtract_transform()
1126 steps = histogram->hdata.intvl.steps; in gimple_mod_subtract_transform()
1128 count1 = histogram->hvalue.counters[0]; in gimple_mod_subtract_transform()
1129 count2 = histogram->hvalue.counters[1]; in gimple_mod_subtract_transform()
1133 gimple_remove_histogram_value (cfun, stmt, histogram); in gimple_mod_subtract_transform()
1145 for (i = 0; i < histogram->hdata.intvl.steps; i++) in gimple_mod_subtract_transform()
1147 count += histogram->hvalue.counters[i]; in gimple_mod_subtract_transform()
1155 gimple_remove_histogram_value (cfun, stmt, histogram); in gimple_mod_subtract_transform()
1418 histogram_value histogram; in dump_ic_profile() local
1432 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_INDIR_CALL); in dump_ic_profile()
1433 if (!histogram) in dump_ic_profile()
1437 all = histogram->hvalue.counters[0]; in dump_ic_profile()
1441 if (!get_nth_most_common_value (NULL, "indirect call", histogram, &val, in dump_ic_profile()
1605 histogram_value histogram; in gimple_stringops_transform() local
1627 histogram = gimple_histogram_value_of_type (cfun, stmt, in gimple_stringops_transform()
1629 if (!histogram) in gimple_stringops_transform()
1632 if (!get_nth_most_common_value (stmt, "stringops", histogram, &val, &count, in gimple_stringops_transform()
1636 gimple_remove_histogram_value (cfun, stmt, histogram); in gimple_stringops_transform()
1703 histogram_value histogram; in stringop_block_profile() local
1704 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_AVERAGE); in stringop_block_profile()
1706 if (!histogram) in stringop_block_profile()
1708 else if (!histogram->hvalue.counters[1]) in stringop_block_profile()
1711 gimple_remove_histogram_value (cfun, stmt, histogram); in stringop_block_profile()
1716 size = ((histogram->hvalue.counters[0] in stringop_block_profile()
1717 + histogram->hvalue.counters[1] / 2) in stringop_block_profile()
1718 / histogram->hvalue.counters[1]); in stringop_block_profile()
1724 gimple_remove_histogram_value (cfun, stmt, histogram); in stringop_block_profile()
1727 histogram = gimple_histogram_value_of_type (cfun, stmt, HIST_TYPE_IOR); in stringop_block_profile()
1729 if (!histogram) in stringop_block_profile()
1731 else if (!histogram->hvalue.counters[0]) in stringop_block_profile()
1733 gimple_remove_histogram_value (cfun, stmt, histogram); in stringop_block_profile()
1741 count = histogram->hvalue.counters[0]; in stringop_block_profile()
1747 gimple_remove_histogram_value (cfun, stmt, histogram); in stringop_block_profile()