Generalize get_most_common_single_value to return n_th value & count
[gcc.git] / gcc / ipa-profile.c
index 1fb939b73d0d206294ae543556cdd47ca465338a..970dba39c8015fdb1fd4821b19711c9a4bc11510 100644 (file)
@@ -192,8 +192,8 @@ ipa_profile_generate_summary (void)
                  if (h)
                    {
                      gcov_type val, count, all;
-                     if (get_most_common_single_value (NULL, "indirect call",
-                                                       h, &val, &count, &all))
+                     if (get_nth_most_common_value (NULL, "indirect call", h,
+                                                    &val, &count, &all))
                        {
                          struct cgraph_edge * e = node->get_edge (stmt);
                          if (e && !e->indirect_unknown_callee)