public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Check that there are no missing probabilities
@ 2017-10-13 14:04 Jan Hubicka
  2017-10-13 17:13 ` Jakub Jelinek
  2017-10-13 20:56 ` Andrew Pinski
  0 siblings, 2 replies; 9+ messages in thread
From: Jan Hubicka @ 2017-10-13 14:04 UTC (permalink / raw)
  To: gcc-patches

Hi,
this patch enables check that no edge probabilities are missing. 

Honza

	* cfghooks.c (verify_flow_info): Check that edge probabilities are
	set.

Index: cfghooks.c
===================================================================
--- cfghooks.c	(revision 253694)
+++ cfghooks.c	(working copy)
@@ -160,6 +161,13 @@ verify_flow_info (void)
 		     e->src->index, e->dest->index);
 	      err = 1;
 	    }
+	  if (profile_status_for_fn (cfun) >= PROFILE_GUESSED
+	      && !e->probability.initialized_p ())
+	    {
+	      error ("Uninitialized probability of edge %i->%i", e->src->index,
+		     e->dest->index);
+	      err = 1;
+	    }
 	  if (!e->probability.verify ())
 	    {
 	      error ("verify_flow_info: Wrong probability of edge %i->%i",

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Check that there are no missing probabilities
@ 2017-10-13 19:07 David Edelsohn
  0 siblings, 0 replies; 9+ messages in thread
From: David Edelsohn @ 2017-10-13 19:07 UTC (permalink / raw)
  To: Jan Hubicka; +Cc: GCC Patches, Bill Seurer

This patch also caused a huge number of testsuite failures on PowerPC,
although it didn't break bootstrap.

Thanks, David

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-10-17 12:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-13 14:04 Check that there are no missing probabilities Jan Hubicka
2017-10-13 17:13 ` Jakub Jelinek
2017-10-13 19:14   ` Jan Hubicka
2017-10-13 19:30     ` Jakub Jelinek
2017-10-13 19:37       ` Jan Hubicka
2017-10-17 11:45       ` Richard Biener
2017-10-17 12:18         ` Jan Hubicka
2017-10-13 20:56 ` Andrew Pinski
2017-10-13 19:07 David Edelsohn

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).