cfgloop.h (struct loop): Document usage of USHRT_MAX for unroll.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 27 Nov 2017 11:56:36 +0000 (11:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 27 Nov 2017 11:56:36 +0000 (11:56 +0000)
commitff27462edc398ca82e86c8c7f13d9fab498ba5c1
tree08222828f4dd3f24e1e5561f204474cdf8789d12
parent39335d1486c5f39182bd0cca6af52a49386319cb
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
13 files changed:
gcc/ChangeLog
gcc/cfgloop.h
gcc/loop-unroll.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/unroll1.adb
gcc/testsuite/gnat.dg/unroll1.ads
gcc/testsuite/gnat.dg/unroll2.adb
gcc/testsuite/gnat.dg/unroll2.ads
gcc/testsuite/gnat.dg/unroll3.adb
gcc/testsuite/gnat.dg/unroll3.ads
gcc/testsuite/gnat.dg/unroll4.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/unroll4.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/unroll4_pkg.ads [new file with mode: 0644]