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

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

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

From-SVN: r241237
This commit is contained in:
Richard Biener 2016-10-17 12:27:48 +00:00 committed by Richard Biener
parent a2284544a1
commit f6a1ec6261
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-10-17 Richard Biener <rguenther@suse.de>
* bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
before using it.
2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
PR tree-optimization/71636

View File

@ -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;