Restore LTO PGO bootstrap after ea0b12523d0d9a9059b5.
authorMartin Liska <mliska@suse.cz>
Tue, 18 Feb 2020 15:33:44 +0000 (16:33 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 18 Feb 2020 15:33:44 +0000 (16:33 +0100)
* value-prof.c (stream_out_histogram_value): Restore LTO PGO
bootstrap by missing removal of invalid sanity check.

gcc/ChangeLog
gcc/value-prof.c

index c107f19..731bae4 100644 (file)
@@ -1,5 +1,10 @@
 2020-02-18  Martin Liska  <mliska@suse.cz>
 
+       * value-prof.c (stream_out_histogram_value): Restore LTO PGO
+       bootstrap by missing removal of invalid sanity check.
+
+2020-02-18  Martin Liska  <mliska@suse.cz>
+
        PR ipa/92518
        * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
        Always compare LHS of gimple_assign.
index 5f940f4..8e9f129 100644 (file)
@@ -332,7 +332,7 @@ stream_out_histogram_value (struct output_block *ob, histogram_value hist)
       /* When user uses an unsigned type with a big value, constant converted
         to gcov_type (a signed type) can be negative.  */
       gcov_type value = hist->hvalue.counters[i];
-      if (hist->type == HIST_TYPE_TOPN_VALUES && i > 0)
+      if (hist->type == HIST_TYPE_TOPN_VALUES)
        ;
       else
        gcc_assert (value >= 0);