public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Audit cgraphunit for optimization attributes
@ 2014-11-17  2:36 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2014-11-17  2:36 UTC (permalink / raw)
  To: gcc-patches, jason

Hi,
this patch updates cgraphunit.  One non-trivial case is expand_thunk.  Jason, I
think expand_thunk should always inherit optimization/target attributes from
the function it is associated with, right?

Bootstrapped/regtested x86_64-linux.

Honza

	* cgraphunit.c (analyze_functions): Use opt_for_fn.

Index: cgraphunit.c
===================================================================
--- cgraphunit.c	(revision 217633)
+++ cgraphunit.c	(working copy)
@@ -1001,7 +1001,7 @@ analyze_functions (void)
 	      for (edge = cnode->callees; edge; edge = edge->next_callee)
 		if (edge->callee->definition)
 		   enqueue_node (edge->callee);
-	      if (optimize && flag_devirtualize)
+	      if (optimize && opt_for_fn (cnode->decl, flag_devirtualize))
 		{
 		  cgraph_edge *next;
 

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

only message in thread, other threads:[~2014-11-16 20:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-17  2:36 Audit cgraphunit for optimization attributes 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).