public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Update profile in tree-if-conv.c
@ 2017-07-01 12:46 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2017-07-01 12:46 UTC (permalink / raw)
  To: gcc-patches

Hi,
this is another place we make single exit edge without probability set.

Bootstrapped/regtested x86_64-linux, will commit it shortly.

Honza

	* tree-if-conv.c (combine_blocks): Use make_single_succ_edge
	to keep profile consistent.
Index: tree-if-conv.c
===================================================================
--- tree-if-conv.c	(revision 249869)
+++ tree-if-conv.c	(working copy)
@@ -2403,7 +2403,7 @@ combine_blocks (struct loop *loop)
       if (exit_bb != loop->header)
 	{
 	  /* Connect this node to loop header.  */
-	  make_edge (loop->header, exit_bb, EDGE_FALLTHRU);
+	  make_single_succ_edge (loop->header, exit_bb, EDGE_FALLTHRU);
 	  set_immediate_dominator (CDI_DOMINATORS, exit_bb, loop->header);
 	}
 

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

only message in thread, other threads:[~2017-07-01 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-01 12:46 Update profile in tree-if-conv.c 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).