re PR ipa/91194 (A suspicious condition in recursive_inlining)
authorJan Hubicka <hubicka@ucw.cz>
Fri, 19 Jul 2019 14:31:09 +0000 (16:31 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 19 Jul 2019 14:31:09 +0000 (14:31 +0000)
PR ipa/91194
* ipa-inline.c (recursive_inlining): Fix limits check.

From-SVN: r273603

gcc/ChangeLog
gcc/ipa-inline.c

index 96c0b96..2ccbcd1 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/91194
+       * ipa-inline.c (recursive_inlining): Fix limits check.
+
 2019-07-19  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/91200
index e730066..5862d00 100644 (file)
@@ -1504,7 +1504,7 @@ recursive_inlining (struct cgraph_edge *edge,
       struct cgraph_node *cnode, *dest = curr->callee;
 
       if (!can_inline_edge_p (curr, true)
-         || can_inline_edge_by_limits_p (curr, true))
+         || !can_inline_edge_by_limits_p (curr, true))
        continue;
 
       /* MASTER_CLONE is produced in the case we already started modified