diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-11-30 23:19:58 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@ucw.cz> | 2019-11-30 23:19:58 +0000 |
commit | bdade4ca515b23dda32a4b1b7d8a120d2564a422 (patch) | |
tree | 7313cd3cc8fa78927b182732a6a412048e46e678 | |
parent | 4ea3a298dc6699d5b653032b271a14ad2428578e (diff) |
* ipa-inline.c (compute_max_insns): Return int64_t.
(inline_small_functions): Simplify.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278880 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e173bad5c44..cc33a041090 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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 scaling happen. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 56ea671c9bc..0f87c476dde 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1722,7 +1722,7 @@ recursive_inlining (struct cgraph_edge *edge, /* Given whole compilation unit estimate of INSNS, compute how large we can allow the unit to grow. */ -static int +static int64_t compute_max_insns (cgraph_node *node, int insns) { int max_insns = insns; @@ -1977,9 +1977,8 @@ inline_small_functions (void) if (dump_file) 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 && !edge->aux && can_inline_edge_p (edge, true) |