diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2010-04-08 15:07:57 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2010-04-08 15:07:57 +0000 |
commit | 40ac4f73faa256e049279c1611d47a685ff7f370 (patch) | |
tree | 0ebeefa37492fc33063a9f55bc090391a092d0fd /gcc/doc/tm.texi | |
parent | 07c60ef701e0fe0c65f0186bd521ee83b6c24c3c (diff) | |
download | gcc-40ac4f73faa256e049279c1611d47a685ff7f370.zip gcc-40ac4f73faa256e049279c1611d47a685ff7f370.tar.gz gcc-40ac4f73faa256e049279c1611d47a685ff7f370.tar.bz2 |
Implement target hook for loop unrolling
2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
Wolfgang Gellerich <gellerich@de.ibm.com>
Implement target hook for loop unrolling
* target.h (loop_unroll_adjust): Add a new target hook function.
* target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
* doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
* config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
(s390_loop_unroll_adjust): Implement the new target hook for s390.
* loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll target hook
(decide_unroll_stupid): Likewise.
Co-Authored-By: Wolfgang Gellerich <gellerich@de.ibm.com>
From-SVN: r158132
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 012edd7..222117d 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -10881,6 +10881,15 @@ This target hook is required only when the target has several different modes and they have different conditional execution capability, such as ARM. @end deftypefn +@deftypefn {Target Hook} unsigned TARGET_LOOP_UNROLL_ADJUST (unsigned @var{nunroll}, struct loop *@var{loop}) +This target hook returns a new value for the number of times @var{loop} +should be unrolled. The parameter @var{nunroll} is the number of times +the loop is to be unrolled. The parameter @var{loop} is a pointer to +the loop, which is going to be checked for unrolling. This target hook +is required only when the target has special constraints like maximum +number of memory accesses. +@end deftypefn + @defmac POWI_MAX_MULTS If defined, this macro is interpreted as a signed integer C expression that specifies the maximum number of floating point multiplications |