diff options
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index cd4a4c99096..6af68939eda 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -311,6 +311,16 @@ extern void delete_loop (struct loop *); extern void verify_loop_structure (void); +/* Check loop structure invariants, if internal consistency checks are + enabled. */ + +static inline void +checking_verify_loop_structure (void) +{ + if (flag_checking) + verify_loop_structure (); +} + /* Loop analysis. */ extern bool just_once_each_iteration_p (const struct loop *, const_basic_block); gcov_type expected_loop_iterations_unbounded (const struct loop *); |