Commit f64fb0fa by Marek Polacek Committed by Marek Polacek

Add more checking of headers.

From-SVN: r195880
parent 0375167b
2013-02-08 Marek Polacek <polacek@redhat.com>
* cfgloop.c (verify_loop_structure): Add more checking
of headers.
2013-02-08 Richard Biener <rguenther@suse.de>
PR middle-end/56181
......
......@@ -1353,6 +1353,15 @@ verify_loop_structure (void)
}
}
/* Check the headers. */
FOR_EACH_BB (bb)
if (bb_loop_header_p (bb)
&& bb->loop_father->header != bb)
{
error ("loop with header %d not in loop tree", bb->index);
err = 1;
}
/* Check get_loop_body. */
visited = sbitmap_alloc (last_basic_block);
bitmap_clear (visited);
......
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