]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/68541 (Path splitting causes if-conversion miss)
authorJeff Law <law@redhat.com>
Fri, 5 Feb 2016 23:49:08 +0000 (16:49 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 5 Feb 2016 23:49:08 +0000 (16:49 -0700)
commit8981d7127bf3caffdb760897def90c8f0e052931
tree5be1fac9c9d036bd4399cd0e8b410fe02c9c7c73
parent46cb933227a0c1cd1e8fca1c3c7179c3bee41be3
re PR tree-optimization/68541 (Path splitting causes if-conversion miss)

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.

From-SVN: r233191
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]