aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2019-10-05 21:36:46 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2019-10-05 21:36:46 +0000
commit78f3b557ed677d3f9169e616f9d335a9628a4127 (patch)
treecb2d5ac246bfbc34634d26e4da4681af6ae73ba5
parentf50b2f242bd75a5358909f54662e2aebe242f3b0 (diff)
* ipa-inline.c: Fix type; compute size rather than self_size
for size of caller function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276629 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-inline.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e85571271c6..d4e180dcf33 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 2801cb9f82d..681801a9aec 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;