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

--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reverting that patch on gcc-8-branch fixes the bug:

--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1166,7 +1166,6 @@ edge_badness (struct cgraph_edge *edge, bool dump)
            overall_growth += 256 * 256 - 256;
          denominator *= overall_growth;
         }
-      denominator *= ipa_fn_summaries->get (caller)->self_size + growth;

       badness = - numerator / denominator;


That line is different on trunk, so I only tested on gcc-8-branch.

Reply via email to