[Bug tree-optimization/61384] [4.10 Regression] ICE on valid code at -O3 on x86_64-linux-gnu

dehao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 2 14:50:00 GMT 2014


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.



More information about the Gcc-bugs mailing list