Commit f6a1ec62 by Richard Biener Committed by Richard Biener

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
parent a2284544
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> 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
PR tree-optimization/71636 PR tree-optimization/71636
......
...@@ -2355,7 +2355,10 @@ reorder_basic_blocks_simple (void) ...@@ -2355,7 +2355,10 @@ reorder_basic_blocks_simple (void)
To start with, everything points to itself, nothing is assigned yet. */ To start with, everything points to itself, nothing is assigned yet. */
FOR_ALL_BB_FN (bb, cfun) FOR_ALL_BB_FN (bb, cfun)
bb->aux = bb; {
bb->aux = bb;
bb->flags &= ~BB_VISITED;
}
EXIT_BLOCK_PTR_FOR_FN (cfun)->aux = 0; EXIT_BLOCK_PTR_FOR_FN (cfun)->aux = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment