diff mbox series

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. | expand

Commit Message

Toon Moene April 19, 2018, 6:03 p.m. UTC
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,

Comments

Richard Biener April 19, 2018, 6:50 p.m. UTC | #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,
diff mbox series

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