http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58279

--- Comment #9 from Stupachenko Evgeny <evstupac at gmail dot com> ---
r203897 | pmatos | 2013-10-21 19:41:46 +0400 (Mon, 21 Oct 2013) | 4 lines

        * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
        calculations.

fixes the issue in trunk.

To be consistent we should apply the patch (attached) to 4.8 GCC as well.
However I believe we should update max_count when adding new edges, but not
edge_count.

Reply via email to