Commit 68cc8feb by Jan Hubicka

Fix previous commit.

From-SVN: r192889
parent b48ccf0d
...@@ -1337,6 +1337,7 @@ inline_small_functions (void) ...@@ -1337,6 +1337,7 @@ inline_small_functions (void)
int min_size, max_size; int min_size, max_size;
VEC (cgraph_edge_p, heap) *new_indirect_edges = NULL; VEC (cgraph_edge_p, heap) *new_indirect_edges = NULL;
int initial_size = 0; int initial_size = 0;
struct cgraph_node **order = XCNEWVEC (struct cgraph_node *, cgraph_n_nodes);
if (flag_indirect_inlining) if (flag_indirect_inlining)
new_indirect_edges = VEC_alloc (cgraph_edge_p, heap, 8); new_indirect_edges = VEC_alloc (cgraph_edge_p, heap, 8);
...@@ -1345,6 +1346,8 @@ inline_small_functions (void) ...@@ -1345,6 +1346,8 @@ inline_small_functions (void)
metrics. */ metrics. */
max_count = 0; max_count = 0;
ipa_reduced_postorder (order, true, true, NULL);
free (order);
FOR_EACH_DEFINED_FUNCTION (node) FOR_EACH_DEFINED_FUNCTION (node)
if (!node->global.inlined_to) if (!node->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