ipa-inline.c (compute_max_insns): Return int64_t.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 30 Nov 2019 23:19:58 +0000 (00:19 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 30 Nov 2019 23:19:58 +0000 (23:19 +0000)
* ipa-inline.c (compute_max_insns): Return int64_t.
(inline_small_functions): Simplify.

From-SVN: r278880

gcc/ChangeLog
gcc/ipa-inline.c

index e173bad5c4423384db855a5997ddb03ad5b58376..cc33a041090c5b1d64c5c7dbe8cf76048028ea06 100644 (file)
@@ -1,3 +1,8 @@
+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
index 56ea671c9bc4887e4bc7ae58ac1b63c933f2bd0b..0f87c476dde1d2c910ac1e7801a0af3252a39eb7 100644 (file)
@@ -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)