* tree-loop-distribution.c: Adjust the general comment.
commit883b490562141ee0c69f5754a61ddd604fd384a0
authoramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Oct 2017 14:29:45 +0000 (12 14:29 +0000)
committeramker <amker@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Oct 2017 14:29:45 +0000 (12 14:29 +0000)
tree2a4f5407e6e1119cddfa77c8d7c7ef36907e826d
parent85676b626fbaa2df4195f49535261d5221fd88d8
* tree-loop-distribution.c: Adjust the general comment.
(NUM_PARTITION_THRESHOLD): New macro.
(ssa_name_has_uses_outside_loop_p): Support loop nest distribution.
(classify_partition): Skip builtin pattern of loop nest's inner loop.
(merge_dep_scc_partitions): New parameter ignore_alias_p and use it
in call to build_partition_graph.
(finalize_partitions): New parameter.  Make loop distribution more
conservative by fusing more partitions.
(distribute_loop): Don't do runtime alias check in case of loop nest
distribution.
(find_seed_stmts_for_distribution): New function.
(prepare_perfect_loop_nest): New function.
(pass_loop_distribution::execute): Refactor code finding seed stmts
and loop nest into above functions.  Support loop nest distribution.
Adjust dump information accordingly.

gcc/testsuite
* gcc.dg/tree-ssa/ldist-7.c: Adjust test string.
* gcc.dg/tree-ssa/ldist-16.c: Ditto.
* gcc.dg/tree-ssa/ldist-25.c: Ditto.
* gcc.dg/tree-ssa/ldist-33.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253679 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ldist-16.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-25.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-33.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/ldist-7.c
gcc/tree-loop-distribution.c