Generalize get_most_common_single_value to return n_th value & count
[gcc.git] / gcc / value-prof.h
index ca846d08cbd7da7acfe45f55e32916c5657654f3..1078722163b81999d836bbd51a60c7fbca12d72c 100644 (file)
@@ -89,11 +89,10 @@ void free_histograms (function *);
 void stringop_block_profile (gimple *, unsigned int *, HOST_WIDE_INT *);
 gcall *gimple_ic (gcall *, struct cgraph_node *, profile_probability);
 bool check_ic_target (gcall *, struct cgraph_node *);
-bool get_most_common_single_value (gimple *stmt, const char *counter_type,
-                                  histogram_value hist,
-                                  gcov_type *value, gcov_type *count,
-                                  gcov_type *all);
-
+bool get_nth_most_common_value (gimple *stmt, const char *counter_type,
+                               histogram_value hist, gcov_type *value,
+                               gcov_type *count, gcov_type *all,
+                               unsigned n = 0);
 
 /* In tree-profile.c.  */
 extern void gimple_init_gcov_profiler (void);