diff options
author | Bin Cheng <bin.cheng@arm.com> | 2017-08-08 14:09:10 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2017-08-08 14:09:10 +0000 |
commit | 5a1156617868a9fb0ea6cac8af3a39799959e6e3 (patch) | |
tree | 66ce5492d59100c9358bc2ed283df34214a4c859 | |
parent | 4261463d962c29bc105f973a8ab4269cf566cd1b (diff) | |
download | gcc-5a1156617868a9fb0ea6cac8af3a39799959e6e3.zip gcc-5a1156617868a9fb0ea6cac8af3a39799959e6e3.tar.gz gcc-5a1156617868a9fb0ea6cac8af3a39799959e6e3.tar.bz2 |
invoke.texi: Document -ftree-loop-distribution for O3.
* doc/invoke.texi: Document -ftree-loop-distribution for O3.
* opts.c (default_options_table): Add OPT_ftree_loop_distribution.
From-SVN: r250959
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 21 | ||||
-rw-r--r-- | gcc/opts.c | 1 |
3 files changed, 20 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f38329..743e3db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 5ee5b0e..b77de03 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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 @@ -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 |