]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-loop-distribution.c: Adjust the general comment.
authorBin Cheng <bin.cheng@arm.com>
Thu, 12 Oct 2017 14:29:45 +0000 (14:29 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Thu, 12 Oct 2017 14:29:45 +0000 (14:29 +0000)
commit163aa51b706a50c86b639d7827803550706bef78
tree2a4f5407e6e1119cddfa77c8d7c7ef36907e826d
parent6dc29d3adcadf6f138898a3f43663f806c1a41ce
tree-loop-distribution.c: Adjust the general comment.

* 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.

From-SVN: r253679
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