On 1/6/19 9:47 AM, Jan Hubicka wrote:

Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi     (revision 267603)
+++ doc/invoke.texi     (working copy)
@@ -9499,6 +9499,8 @@ DO I = 1, N
     D(I) = E(I) * F
  ENDDO
  @end smallexample
+This flag is enabled by default at @option{-O3}.
+It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}.
@item -ftree-loop-distribute-patterns
  @opindex ftree-loop-distribute-patterns
@@ -9524,6 +9526,8 @@ DO I = 1, N
  ENDDO
  @end smallexample
  and the initialization loop is transformed into a call to memset zero.
+This flag is enabled by default at @option{-O3}.
+It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}.
@item -floop-interchange
  @opindex floop-interchange
@@ -9544,12 +9548,14 @@ for (int i = 0; i < N; i++)
        c[i][j] = c[i][j] + a[i][k]*b[k][j];
  @end smallexample
  This flag is enabled by default at @option{-O3}.
+It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}.
@item -floop-unroll-and-jam
  @opindex floop-unroll-and-jam
  Apply unroll and jam transformations on feasible loops.  In a loop
  nest this unrolls the outer loop by some factor and fuses the resulting
  multiple inner loops.  This flag is enabled by default at @option{-O3}.
+It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}.
@item -ftree-loop-im
  @opindex ftree-loop-im
@@ -10804,6 +10810,8 @@ else
This is particularly useful for assumed-shape arrays in Fortran where
  (for example) it allows better vectorization assuming contiguous accesses.
+This flag is enabled by default at @option{-O3}.
+It is also enabled by @option{-fprofile-use} and @option{-fauto-profile}.
@item -ffunction-sections
  @itemx -fdata-sections


The documentation for -fprofile-use and -fauto-profile also includes tables of the other options implied by those options. Can you please update those too? I just synced them up with the code a couple months ago (PR middle-end/23197).

-Sandra

Reply via email to