aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-05 23:36:46 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-05 21:36:46 +0000
commit6c291ad828fcb5f01a1d2cb23f6078e9a6f958b9 (patch)
treecb2d5ac246bfbc34634d26e4da4681af6ae73ba5 /gcc/ipa-inline.c
parent2345fe52da74dac58173489e844647d3a94f4ca8 (diff)
downloadgcc-6c291ad828fcb5f01a1d2cb23f6078e9a6f958b9.zip
gcc-6c291ad828fcb5f01a1d2cb23f6078e9a6f958b9.tar.gz
gcc-6c291ad828fcb5f01a1d2cb23f6078e9a6f958b9.tar.bz2
ipa-inline.c: Fix type; compute size rather than self_size for size of caller function.
* ipa-inline.c: Fix type; compute size rather than self_size for size of caller function. From-SVN: r276629
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 2801cb9..681801a 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -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;