ipa-inline.c: Fix type; compute size rather than self_size for size of caller function.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 5 Oct 2019 21:36:46 +0000 (23:36 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 5 Oct 2019 21:36:46 +0000 (21:36 +0000)
* ipa-inline.c: Fix type; compute size rather than self_size
for size of caller function.

From-SVN: r276629

gcc/ChangeLog
gcc/ipa-inline.c

index e85571271c640fc0fadda3431c1d71bb5620183e..d4e180dcf33d6a64df212b904add2b83d475efd6 100644 (file)
@@ -1,3 +1,8 @@
+2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-inline.c: Fix type; compute size rather than self_size
+       for size of caller function.
+
 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
 
        PR target/59888
index 2801cb9f82d5dba257765e23f8784ed48fcdf5cc..681801a9aec0cb4e9e920de0a5cb8501a9ce9f3f 100644 (file)
@@ -1186,7 +1186,7 @@ edge_badness (struct cgraph_edge *edge, bool dump)
             if (need_more_work)
               noninline_callee ();
           }
-        Withhout panilizing this case, we usually inline noninline_callee
+        Withhout penalizing this case, we usually inline noninline_callee
         into the inline_caller because overall_growth is small preventing
         further inlining of inline_caller.
 
@@ -1243,7 +1243,7 @@ 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;
+      denominator *= ipa_fn_summaries->get (caller)->size + growth;
 
       badness = - numerator / denominator;