From: Sebastian Pop Date: Sat, 13 Mar 2010 17:35:08 +0000 (+0000) Subject: Document PARAM_LOOP_BLOCK_TILE_SIZE. X-Git-Tag: releases/gcc-4.5.0~391 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d19891386c3d0a4626b6c08a4bcc7dd9f56cfb5;p=thirdparty%2Fgcc.git Document PARAM_LOOP_BLOCK_TILE_SIZE. 2010-03-09 Sebastian Pop * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document. From-SVN: r157435 --- diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 837e4bc8e205..3a49ccc52885 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,7 @@ +2010-03-09 Sebastian Pop + + * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document. + 2010-03-09 Sebastian Pop PR middle-end/43306 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index b856ca2256f3..8648405e130c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6675,7 +6675,9 @@ Graphite loop transformation infrastructure. Perform loop strip mining transformations on loops. Strip mining splits a loop into two nested loops. The outer loop has strides equal to the strip size and the inner loop has strides of the -original loop within a strip. For example, given a loop like: +original loop within a strip. The strip length can be changed +using the @option{loop-block-tile-size} parameter. For example, +given a loop like: @smallexample DO I = 1, N A(I) = A(I) + C @@ -6683,8 +6685,8 @@ ENDDO @end smallexample loop strip mining will transform the loop as if the user had written: @smallexample -DO II = 1, N, 4 - DO I = II, min (II + 3, N) +DO II = 1, N, 51 + DO I = II, min (II + 50, N) A(I) = A(I) + C ENDDO ENDDO @@ -6697,7 +6699,9 @@ enable the Graphite loop transformation infrastructure. @item -floop-block Perform loop blocking transformations on loops. Blocking strip mines each loop in the loop nest such that the memory accesses of the -element loops fit inside caches. For example, given a loop like: +element loops fit inside caches. The strip length can be changed +using the @option{loop-block-tile-size} parameter. For example, given +a loop like: @smallexample DO I = 1, N DO J = 1, M @@ -6707,10 +6711,10 @@ ENDDO @end smallexample loop blocking will transform the loop as if the user had written: @smallexample -DO II = 1, N, 64 - DO JJ = 1, M, 64 - DO I = II, min (II + 63, N) - DO J = JJ, min (JJ + 63, M) +DO II = 1, N, 51 + DO JJ = 1, M, 51 + DO I = II, min (II + 50, N) + DO J = JJ, min (JJ + 50, M) A(J, I) = B(I) + C(J) ENDDO ENDDO @@ -8501,6 +8505,11 @@ To avoid exponential effects in the detection of SCoPs, the functions with more than 100 basic blocks are not handled by the Graphite loop transforms. +@item loop-block-tile-size +The default factor for the loop blocking or strip mining transforms, +enabled with @option{-floop-block} or @option{-floop-strip-mine}, is +51. + @end table @end table