invoke.texi: Document -ftree-loop-distribution for O3.
authorBin Cheng <bin.cheng@arm.com>
Tue, 8 Aug 2017 14:09:10 +0000 (14:09 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Tue, 8 Aug 2017 14:09:10 +0000 (14:09 +0000)
* doc/invoke.texi: Document -ftree-loop-distribution for O3.
* opts.c (default_options_table): Add OPT_ftree_loop_distribution.

From-SVN: r250959

gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c

index 2f38329ed9eb0e03a2ddc1671fcfae695e3b50b6..743e3dbe6ecf5cb1ae33443ab44285d8bf19fc54 100644 (file)
@@ -1,3 +1,8 @@
+2017-08-08  Bin Cheng  <bin.cheng@arm.com>
+
+       * doc/invoke.texi: Document -ftree-loop-distribution for O3.
+       * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
+
 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
 
        PR middle-end/19706
index 5ee5b0e7b6d23badc95f0190c3af92a6ddcbdf40..b77de034e2e3baddaeb041e6ec44e287cd42b87e 100644 (file)
@@ -7248,13 +7248,20 @@ invoking @option{-O2} on programs that use computed gotos.
 @item -O3
 @opindex O3
 Optimize yet more.  @option{-O3} turns on all optimizations specified
-by @option{-O2} and also turns on the @option{-finline-functions},
-@option{-funswitch-loops}, @option{-fpredictive-commoning},
-@option{-fgcse-after-reload}, @option{-ftree-loop-vectorize},
-@option{-ftree-loop-distribute-patterns}, @option{-fsplit-paths}
-@option{-ftree-slp-vectorize}, @option{-fvect-cost-model},
-@option{-ftree-partial-pre}, @option{-fpeel-loops}
-and @option{-fipa-cp-clone} options.
+by @option{-O2} and also turns on the following optimization flags:
+@gccoptlist{-finline-functions @gol
+-funswitch-loops @gol
+-fpredictive-commoning @gol
+-fgcse-after-reload @gol
+-ftree-loop-vectorize @gol
+-ftree-loop-distribution @gol
+-ftree-loop-distribute-patterns @gol
+-fsplit-paths @gol
+-ftree-slp-vectorize @gol
+-fvect-cost-model @gol
+-ftree-partial-pre @gol
+-fpeel-loops @gol
+-fipa-cp-clone}
 
 @item -O0
 @opindex O0
index 989cc6b6dec6377280958178a120dfa1470d1704..19e8c7fb7d4d0a8f81b1150322b785ab2e77a7f2 100644 (file)
@@ -525,6 +525,7 @@ static const struct default_options default_options_table[] =
 
     /* -O3 optimizations.  */
     { OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 },
+    { OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribution, NULL, 1 },
     { OPT_LEVELS_3_PLUS, OPT_fpredictive_commoning, NULL, 1 },
     { OPT_LEVELS_3_PLUS, OPT_fsplit_paths, NULL, 1 },
     /* Inlining of functions reducing size is a good idea with -Os