diff options
author | Bin Cheng <bin.cheng@arm.com> | 2016-07-29 15:44:00 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2016-07-29 15:44:00 +0000 |
commit | 18767ebc32eaed40760aab394fe77d0815454efd (patch) | |
tree | a1a32cebdc504645bd7b6aa9f95e65a49b16c9a7 /gcc/cfgloop.c | |
parent | f6c7a248d5eb50e3cfcf15e552c2be698ebea34b (diff) | |
download | gcc-18767ebc32eaed40760aab394fe77d0815454efd.zip gcc-18767ebc32eaed40760aab394fe77d0815454efd.tar.gz gcc-18767ebc32eaed40760aab394fe77d0815454efd.tar.bz2 |
cfgloop.h (struct loop): New field constraints.
* cfgloop.h (struct loop): New field constraints.
(LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
(loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
functions.
* cfgloop.c (alloc_loop): Initialize new field.
* cfgloopmanip.c (copy_loop_info): Copy constraints.
* tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
Adjust niter analysis wrto loop constraints.
* doc/loop.texi (@node Number of iterations): Add description for loop
constraints.
From-SVN: r238876
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 8f531b0..205562f 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -339,6 +339,7 @@ alloc_loop (void) loop->exits = ggc_cleared_alloc<loop_exit> (); loop->exits->next = loop->exits->prev = loop->exits; loop->can_be_parallel = false; + loop->constraints = 0; loop->nb_iterations_upper_bound = 0; loop->nb_iterations_likely_upper_bound = 0; loop->nb_iterations_estimate = 0; |