New option -floop-unroll-and-jam.

Message ID 9bef76fc-0890-91f6-8144-f611191a3526@moene.org
State New
Headers show
Series
  • New option -floop-unroll-and-jam.
Related show

Commit Message

Toon Moene April 19, 2018, 6:03 p.m.
According to the Changes page for GCC 8, -floop-unroll-and-jam is 
enabled by default for -O3 optimization:

"Two new classical loop nest optimization passes have been added. 
-floop-unroll-and-jam performs outer loop unrolling and fusing of the 
inner loop copies. -floop-interchange exchanges loops in a loop nest to 
improve data locality. Both passes are enabled by default at -O3 and above."

However, the documentation of optimization options does not reflect this.

Is the following change to the documentation acceptable ?

ChangeLog

2018-04-19  Toon Moene  <toon@moene.org>

* doc/invoke.texi: Add -floop-unroll-and-jam to options enabled
by -O3.


Thanks,

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news

Comments

Richard Biener April 19, 2018, 6:50 p.m. | #1
On April 19, 2018 8:03:48 PM GMT+02:00, Toon Moene <toon@moene.org> wrote:
>According to the Changes page for GCC 8, -floop-unroll-and-jam is 

>enabled by default for -O3 optimization:

>

>"Two new classical loop nest optimization passes have been added. 

>-floop-unroll-and-jam performs outer loop unrolling and fusing of the 

>inner loop copies. -floop-interchange exchanges loops in a loop nest to

>

>improve data locality. Both passes are enabled by default at -O3 and

>above."

>

>However, the documentation of optimization options does not reflect

>this.

>

>Is the following change to the documentation acceptable ?


Yes. 

>ChangeLog

>

>2018-04-19  Toon Moene  <toon@moene.org>

>

>* doc/invoke.texi: Add -floop-unroll-and-jam to options enabled

>by -O3.

>

>Index: invoke.texi

>===================================================================

>--- invoke.texi	(revision 259471)

>+++ invoke.texi	(working copy)

>@@ -7652,6 +7652,7 @@

>  -ftree-loop-distribution @gol

>  -ftree-loop-distribute-patterns @gol

>  -floop-interchange @gol

>+-floop-unroll-and-jam @gol

>  -fsplit-paths @gol

>  -ftree-slp-vectorize @gol

>  -fvect-cost-model @gol

>

>Thanks,

Patch

Index: invoke.texi
===================================================================
--- invoke.texi	(revision 259471)
+++ invoke.texi	(working copy)
@@ -7652,6 +7652,7 @@ 
  -ftree-loop-distribution @gol
  -ftree-loop-distribute-patterns @gol
  -floop-interchange @gol
+-floop-unroll-and-jam @gol
  -fsplit-paths @gol
  -ftree-slp-vectorize @gol
  -fvect-cost-model @gol