aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloop.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2017-11-27 11:56:36 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2017-11-27 11:56:36 +0000
commitff27462edc398ca82e86c8c7f13d9fab498ba5c1 (patch)
tree08222828f4dd3f24e1e5561f204474cdf8789d12 /gcc/cfgloop.h
parent39335d1486c5f39182bd0cca6af52a49386319cb (diff)
downloadgcc-ff27462edc398ca82e86c8c7f13d9fab498ba5c1.zip
gcc-ff27462edc398ca82e86c8c7f13d9fab498ba5c1.tar.gz
gcc-ff27462edc398ca82e86c8c7f13d9fab498ba5c1.tar.bz2
cfgloop.h (struct loop): Document usage of USHRT_MAX for unroll.
* cfgloop.h (struct loop): Document usage of USHRT_MAX for unroll. * loop-unroll.c (decide_unroll_constant_iterations): Implement it. (decide_unroll_runtime_iterations): Likewise. (decide_unroll_stupid): Likewise. From-SVN: r255165
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r--gcc/cfgloop.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index be2ba8c..dce01bd 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -221,9 +221,10 @@ struct GTY ((chain_next ("%h.next"))) loop {
/* True if the loop is part of an oacc kernels region. */
unsigned in_oacc_kernels_region : 1;
- /* The number of times to unroll the loop. 0, means no information
- given, just do what we always do. A value of 1, means don't unroll
- the loop. */
+ /* The number of times to unroll the loop. 0 means no information given,
+ just do what we always do. A value of 1 means do not unroll the loop.
+ A value of USHRT_MAX means unroll with no specific unrolling factor.
+ Other values means unroll with the given unrolling factor. */
unsigned short unroll;
/* For SIMD loops, this is a unique identifier of the loop, referenced