]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR tree-optimization/68541
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2016 23:49:08 +0000 (23:49 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Feb 2016 23:49:08 +0000 (23:49 +0000)
commit3f0ff0d86fdd25d414289cd27c8821c0f812025d
tree5be1fac9c9d036bd4399cd0e8b410fe02c9c7c73
parenta7cc1f9413bc7e462eca0bd1ed30f77e5e693062
PR tree-optimization/68541
* gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
(count_stmts_in_block): New function.
(poor_ifcvt_candidate_code): Likewise.
(is_feasible_trace): Add some heuristics to determine when path
splitting is profitable.
(find_block_to_duplicate_for_splitting_paths): Make sure the graph
is a diamond with a single exit.

        PR tree-optimization/68541
* gcc.dg/tree-ssa/split-path-2.c: New test.
* gcc.dg/tree-ssa/split-path-3.c: New test.
* gcc.dg/tree-ssa/split-path-4.c: New test.
* gcc.dg/tree-ssa/split-path-5.c: New test.
* gcc.dg/tree-ssa/split-path-6.c: New test.
* gcc.dg/tree-ssa/split-path-7.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233191 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-split-paths.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/split-path-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/split-path-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/split-path-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/split-path-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/split-path-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/split-path-7.c [new file with mode: 0644]