Commit 8fcfc44f by Jan Hubicka Committed by Jan Hubicka

ipa-inline.c (compute_max_insns): Return int64_t.

	* ipa-inline.c (compute_max_insns): Return int64_t.
	(inline_small_functions): Simplify.

From-SVN: r278880
parent a9a4edf0
2019-11-30 Jan Hubicka <hubicka@ucw.cz> 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline.c (compute_max_insns): Return int64_t.
(inline_small_functions): Simplify.
2019-11-30 Jan Hubicka <hubicka@ucw.cz>
* tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
scaling happen. scaling happen.
...@@ -1722,7 +1722,7 @@ recursive_inlining (struct cgraph_edge *edge, ...@@ -1722,7 +1722,7 @@ recursive_inlining (struct cgraph_edge *edge,
/* Given whole compilation unit estimate of INSNS, compute how large we can /* Given whole compilation unit estimate of INSNS, compute how large we can
allow the unit to grow. */ allow the unit to grow. */
static int static int64_t
compute_max_insns (cgraph_node *node, int insns) compute_max_insns (cgraph_node *node, int insns)
{ {
int max_insns = insns; int max_insns = insns;
...@@ -1977,9 +1977,8 @@ inline_small_functions (void) ...@@ -1977,9 +1977,8 @@ inline_small_functions (void)
if (dump_file) if (dump_file)
fprintf (dump_file, "Enqueueing calls in %s.\n", node->dump_name ()); fprintf (dump_file, "Enqueueing calls in %s.\n", node->dump_name ());
for (edge = node->callees; edge; edge = next) for (edge = node->callees; edge; edge = edge->next_callee)
{ {
next = edge->next_callee;
if (edge->inline_failed if (edge->inline_failed
&& !edge->aux && !edge->aux
&& can_inline_edge_p (edge, true) && can_inline_edge_p (edge, true)
......
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