Improve verification of loop->latch in verify_loop_structure
authorTom de Vries <tom@codesourcery.com>
Wed, 25 Nov 2015 11:28:49 +0000 (11:28 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 25 Nov 2015 11:28:49 +0000 (11:28 +0000)
commitb81b8bcadbaf0c703cc88b81f1ed3a6cae583e20
treeeeaa9b933e9f67b2998b67bbf5bfc75188ea7771
parente5ef217c3e12ddab9e50843ce322702e8b9d1686
Improve verification of loop->latch in verify_loop_structure

2015-11-25  Tom de Vries  <tom@codesourcery.com>

* cfgloop.c (find_single_latch): New function, factored out of ...
(flow_loops_find): ... here.
(verify_loop_structure): Improve verification of loop->latch.
* cfgloop.h (find_single_latch): Declare.
* omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.

From-SVN: r230866
gcc/ChangeLog
gcc/cfgloop.c
gcc/cfgloop.h
gcc/omp-low.c