Fix reversed conditional in recursive_inlining

Message ID 20190719143240.s6zqzu5mygjuogvu@kam.mff.cuni.cz
State New
Headers show
Series
  • Fix reversed conditional in recursive_inlining
Related show

Commit Message

Jan Hubicka July 19, 2019, 2:32 p.m.
Hi,
this patch fixes bug in recursive_inlining noticed by Feng Xue.

Bootstrapped/regtested x86_64-linux, comitted.

Honza

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 273602)
+++ ChangeLog	(working copy)
@@ -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: ipa-inline.c
===================================================================
--- ipa-inline.c	(revision 273570)
+++ ipa-inline.c	(working copy)
@@ -1504,7 +1504,7 @@  recursive_inlining (struct cgraph_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