aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorJosh Conner <jconner@apple.com>2005-07-28 17:18:23 +0000
committerJosh Conner <jconner@gcc.gnu.org>2005-07-28 17:18:23 +0000
commitfacc20ee9b776ac4829a49a0bc1be1267b8358f4 (patch)
tree0b22f1b93c2973a016ebe3cb4bef452a6bfe334e /gcc/ipa-inline.c
parent9de21a2340b1c198d7ce431753ac92a1f71e0a48 (diff)
downloadgcc-facc20ee9b776ac4829a49a0bc1be1267b8358f4.zip
gcc-facc20ee9b776ac4829a49a0bc1be1267b8358f4.tar.gz
gcc-facc20ee9b776ac4829a49a0bc1be1267b8358f4.tar.bz2
ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
* ipa-inline.c (update_caller_keys): Fix estimated_growth caching. (cgraph_decide_inlining_of_small_functions): Likewise. From-SVN: r102498
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 0797e77..ce5d7fe 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -406,6 +406,7 @@ update_caller_keys (fibheap_t heap, struct cgraph_node *node,
if (bitmap_bit_p (updated_nodes, node->uid))
return;
bitmap_set_bit (updated_nodes, node->uid);
+ node->global.estimated_growth = INT_MIN;
for (edge = node->callers; edge; edge = edge->next_caller)
if (edge->inline_failed)
@@ -756,6 +757,7 @@ cgraph_decide_inlining_of_small_functions (void)
}
else
{
+ struct cgraph_node *callee;
if (!cgraph_check_inline_limits (edge->caller, edge->callee,
&edge->inline_failed))
{
@@ -764,8 +766,9 @@ cgraph_decide_inlining_of_small_functions (void)
cgraph_node_name (edge->caller), edge->inline_failed);
continue;
}
+ callee = edge->callee;
cgraph_mark_inline_edge (edge);
- update_callee_keys (heap, edge->callee, updated_nodes);
+ update_callee_keys (heap, callee, updated_nodes);
}
where = edge->caller;
if (where->global.inlined_to)