* ipa-inline.c (update_callee_keys): Don't reset node growth cache.
authorJan Hubicka <jh@suse.cz>
Sat, 7 May 2011 14:30:07 +0000 (16:30 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 7 May 2011 14:30:07 +0000 (14:30 +0000)
From-SVN: r173532

gcc/ChangeLog
gcc/ipa-inline.c

index a94e41f153f1dfb8e92576f682c113577351ed6e..b2391638a8192e6b8463927a91520f251b4082fb 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-06  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
+
 2011-05-06  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.c (cgraph_add_thunk): Create real function node instead
index f74759ce4fc80d87d384c5d4b4a4e6b47aacdbae..4f666040be28548d6375b4beef9d1ea572beb3a1 100644 (file)
@@ -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