https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61384
dehao at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from dehao at gcc dot gnu.org --- We need to rebuild frequency after vrp, otherwise the following code in tree-ssa-threadupdate.c will make the frequency larger than upper-bound. /* Excessive jump threading may make frequencies large enough so the computation overflows. */ if (rd->dup_blocks[0]->frequency < BB_FREQ_MAX * 2) rd->dup_blocks[0]->frequency += EDGE_FREQUENCY (e); I'll send out a patch for this.