public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix reversed conditional in recursive_inlining
@ 2019-07-19 14:41 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2019-07-19 14:41 UTC (permalink / raw)
  To: gcc-patches

Hi,
this patch fixes bug in recursive_inlining noticed by Feng Xue.

Bootstrapped/regtested x86_64-linux, comitted.

Honza

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-19 14:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 14:41 Fix reversed conditional in recursive_inlining Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).