diff options
author | Richard Biener <rguenther@suse.de> | 2015-04-23 08:30:04 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-04-23 08:30:04 +0000 |
commit | b0dd8c90ff1a4a50e21b4b2918c7484f36106947 (patch) | |
tree | effc3756d6b4a06c5169abcd4a1c65749373e202 /gcc/cfgloop.c | |
parent | 905bcb98e7fc013e4061f060106fed01d335ea16 (diff) | |
download | gcc-b0dd8c90ff1a4a50e21b4b2918c7484f36106947.zip gcc-b0dd8c90ff1a4a50e21b4b2918c7484f36106947.tar.gz gcc-b0dd8c90ff1a4a50e21b4b2918c7484f36106947.tar.bz2 |
cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
2015-04-23 Richard Biener <rguenther@suse.de>
* cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
* cfgloop.c (verify_loop_structure): Verify the root loop node.
* except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
instead of get_eh_region_from_lp_number.
* loop-init.c (fix_loop_structure): If we removed a loop, reset
the SCEV cache.
From-SVN: r222353
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index ce56b69..5767494 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -1347,6 +1347,16 @@ verify_loop_structure (void) else verify_dominators (CDI_DOMINATORS); + /* Check the loop tree root. */ + if (current_loops->tree_root->header != ENTRY_BLOCK_PTR_FOR_FN (cfun) + || current_loops->tree_root->latch != EXIT_BLOCK_PTR_FOR_FN (cfun) + || (current_loops->tree_root->num_nodes + != (unsigned) n_basic_blocks_for_fn (cfun))) + { + error ("corrupt loop tree root"); + err = 1; + } + /* Check the headers. */ FOR_EACH_BB_FN (bb, cfun) if (bb_loop_header_p (bb)) |