tree-data-ref.c (have_similar_memory_accesses_1): Remove.
authorRichard Guenther <rguenther@suse.de>
Mon, 4 Jun 2012 09:00:21 +0000 (09:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Jun 2012 09:00:21 +0000 (09:00 +0000)
commitc014f6f54b11651b253192956ef16bdc12a4ddaa
treec9484b42ae7ecc4f94ed5074f51c6f5dd55b960d
parent296f202e8ec694dbbd987aed2b97b04ce895858f
tree-data-ref.c (have_similar_memory_accesses_1): Remove.

2012-06-04  Richard Guenther  <rguenther@suse.de>

* tree-data-ref.c (have_similar_memory_accesses_1): Remove.
(ref_base_address_1): Likewise.
(remove_similar_memory_refs): Likewise.
* tree-data-ref.h (remove_similar_memory_refs): Remove.
* tree-loop-distribution.c (classify_partition): Do not classify
as builtin if -ftree-loop-distribute-patterns is not enabled.
(fuse_partitions_with_similar_memory_accesses): Inline ...
(ldist_gen): ... here.  Fuse all non-builtin partitions if
-ftree-loop-distribution is not enabled.  Properly return
the number of created partitions.  Do not update SSA form here
but ...
(tree_loop_distribution): ... once here for the whole function.
Only walk innermost loops, constrain loops we consider here
further.  Do not call remove_similar_memory_refs.
(distribute_loop): Do not check number of loop nodes here.

* gcc.dg/tree-ssa/ldist-11.c: Enable -ftree-loop-distribute-patterns.
* gcc.dg/tree-ssa/ldist-17.c: Likewise.
* gcc.dg/tree-ssa/ldist-pr45948.c: Likewise.

From-SVN: r188168
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/ldist-11.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-17.c
gcc/testsuite/gcc.dg/tree-ssa/ldist-pr45948.c
gcc/tree-data-ref.c
gcc/tree-data-ref.h
gcc/tree-loop-distribution.c