Commit facc20ee by Josh Conner Committed by Josh Conner

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
parent 9de21a23
2005-07-28 Josh Conner <jconner@apple.com> 2005-07-28 Josh Conner <jconner@apple.com>
* ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
(cgraph_decide_inlining_of_small_functions): Likewise.
2005-07-28 Josh Conner <jconner@apple.com>
* ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
direction of badness if negative. direction of badness if negative.
(cgraph_default_inline_p): Add reason to parameters, and assign it (cgraph_default_inline_p): Add reason to parameters, and assign it
......
...@@ -406,6 +406,7 @@ update_caller_keys (fibheap_t heap, struct cgraph_node *node, ...@@ -406,6 +406,7 @@ update_caller_keys (fibheap_t heap, struct cgraph_node *node,
if (bitmap_bit_p (updated_nodes, node->uid)) if (bitmap_bit_p (updated_nodes, node->uid))
return; return;
bitmap_set_bit (updated_nodes, node->uid); bitmap_set_bit (updated_nodes, node->uid);
node->global.estimated_growth = INT_MIN;
for (edge = node->callers; edge; edge = edge->next_caller) for (edge = node->callers; edge; edge = edge->next_caller)
if (edge->inline_failed) if (edge->inline_failed)
...@@ -756,6 +757,7 @@ cgraph_decide_inlining_of_small_functions (void) ...@@ -756,6 +757,7 @@ cgraph_decide_inlining_of_small_functions (void)
} }
else else
{ {
struct cgraph_node *callee;
if (!cgraph_check_inline_limits (edge->caller, edge->callee, if (!cgraph_check_inline_limits (edge->caller, edge->callee,
&edge->inline_failed)) &edge->inline_failed))
{ {
...@@ -764,8 +766,9 @@ cgraph_decide_inlining_of_small_functions (void) ...@@ -764,8 +766,9 @@ cgraph_decide_inlining_of_small_functions (void)
cgraph_node_name (edge->caller), edge->inline_failed); cgraph_node_name (edge->caller), edge->inline_failed);
continue; continue;
} }
callee = edge->callee;
cgraph_mark_inline_edge (edge); cgraph_mark_inline_edge (edge);
update_callee_keys (heap, edge->callee, updated_nodes); update_callee_keys (heap, callee, updated_nodes);
} }
where = edge->caller; where = edge->caller;
if (where->global.inlined_to) if (where->global.inlined_to)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment