aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-12-01 00:19:58 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-30 23:19:58 +0000
commit8fcfc44f611d494d2ec5fcc4a3e43f6aebce99f7 (patch)
tree7313cd3cc8fa78927b182732a6a412048e46e678 /gcc/ipa-inline.c
parenta9a4edf0e71bbac9f1b5dcecdcf9250111d16889 (diff)
downloadgcc-8fcfc44f611d494d2ec5fcc4a3e43f6aebce99f7.zip
gcc-8fcfc44f611d494d2ec5fcc4a3e43f6aebce99f7.tar.gz
gcc-8fcfc44f611d494d2ec5fcc4a3e43f6aebce99f7.tar.bz2
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
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r--gcc/ipa-inline.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 56ea671..0f87c47 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)