[Bug tree-optimization/64326] [5 Regression] ICE at -O3 on x86_64-linux-gnu in check_probability, at basic-block.h:581

tbsaunde at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Feb 10 14:49:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64326

--- Comment #8 from tbsaunde at gcc dot gnu.org ---
Author: tbsaunde
Date: Tue Feb 10 14:49:07 2015
New Revision: 220585

URL: https://gcc.gnu.org/viewcvs?rev=220585&root=gcc&view=rev
Log:
cap frequency in make_forwarder_block

In the testcase the block with problematic frequency has to incoming
edges.  Each edge has probability 1.  The first edge's source bb has
frequency 873/10000, and the second has a frequency of 9409/10000.  So
at least one of those is slightly high probably from some sort of rounding
issue related to fixed point, but in any case make_forwarder_block
should not create basic blocks with frequency greater than BB_FREQ_MAX.

gcc/

    PR tree-optimization/64326
    * cfghooks.c (make_forwarder_block): Cap frequency of created
    basic block.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr64326.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cfghooks.c



More information about the Gcc-bugs mailing list