[PATCH] Clear BB_VISITED in bb-reorder

Richard Biener rguenther@suse.de
Mon Oct 17 12:26:00 GMT 2016


$subject, applied as obvious.

Richard.

2016-10-17  Richard Biener  <rguenther@suse.de>

	* bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
	before using it.

Index: gcc/bb-reorder.c
===================================================================
--- gcc/bb-reorder.c	(revision 241228)
+++ gcc/bb-reorder.c	(working copy)
@@ -2355,7 +2355,10 @@ reorder_basic_blocks_simple (void)
      To start with, everything points to itself, nothing is assigned yet.  */
 
   FOR_ALL_BB_FN (bb, cfun)
-    bb->aux = bb;
+    {
+      bb->aux = bb;
+      bb->flags &= ~BB_VISITED;
+    }
 
   EXIT_BLOCK_PTR_FOR_FN (cfun)->aux = 0;
 



More information about the Gcc-patches mailing list