[PATCH] Limit path splitting to loops we optimize for speed
commitd7390210fcbab0333244adb57d3f50854d6e5c04
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Dec 2015 23:33:44 +0000 (17 23:33 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Dec 2015 23:33:44 +0000 (17 23:33 +0000)
tree56a61439f85b853a276516f7416b8845a06d3886
parentc748c1630fdc5ee1c6774cf7cc7b9c5df88c4b29
[PATCH] Limit path splitting to loops we optimize for speed

* doc/invoke.texi (-O2 options): Remove -fsplit-paths.
(-O3 options): Add -fsplit-paths.
* gimple-ssa-split-paths.c: Include predict.h
(split_paths): Only split paths in a loop that should be
optimized for speed.
* opts.c (default_options_table): Move -fsplit-paths from -O2 to
-O3.

* gcc.dg/tree-ssa/split-path-1.c: Explicitly ask for path
splitting optimizations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231790 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/gimple-ssa-split-paths.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/split-path-1.c