From: Jan Hubicka Date: Sat, 7 May 2011 14:30:07 +0000 (+0200) Subject: * ipa-inline.c (update_callee_keys): Don't reset node growth cache. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58696ce5e418de14f1c79f3f62b523055ad3ea2c;p=gcc.git * ipa-inline.c (update_callee_keys): Don't reset node growth cache. From-SVN: r173532 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a94e41f153f..b2391638a81 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-06 Jan Hubicka + + * ipa-inline.c (update_callee_keys): Don't reset node growth cache. + 2011-05-06 Jan Hubicka * cgraph.c (cgraph_add_thunk): Create real function node instead diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index f74759ce4fc..4f666040be2 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -957,9 +957,9 @@ update_callee_keys (fibheap_t heap, struct cgraph_node *node, e = e->callee->callees; else { - /* We inlined and thus callees might have different number of calls. - Reset their caches */ - reset_node_growth_cache (e->callee); + /* We do not reset callee growth cache here. Since we added a new call, + growth chould have just increased and consequentely badness metric + don't need updating. */ if (e->inline_failed && inline_summary (e->callee)->inlinable && cgraph_function_body_availability (e->callee) >= AVAIL_AVAILABLE