This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r168212 - in /branches/gcc-4_5-branch/gcc: Chan...


Author: spop
Date: Thu Dec 23 18:51:51 2010
New Revision: 168212

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168212
Log:
Fix PR43023: fuse_partitions_with_similar_memory_accesses.

2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/43023
	* tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
	Removed.
	(stores_zero_from_loop): Call stmt_stores_zero.
	(stmt_with_adjacent_zero_store_dr_p): New.
	* tree-data-ref.h (stmt_with_adjacent_zero_store_dr_p): Declared.
	(stride_of_unit_type_p): New.
	* tree-loop-distribution.c (generate_memset_zero): Do not return a
	boolean.  Call gcc_assert on stride_of_unit_type_p.
	(generate_builtin): Call stmt_stores_zero.
	(rdg_flag_all_uses): Removed.
	(rdg_flag_similar_memory_accesses): Removed.
	(build_rdg_partition_for_component): Removed parameter
	other_stores.  Removed call to rdg_flag_similar_memory_accesses.
	(can_generate_builtin): New.
	(similar_memory_accesses): New.
	(fuse_partitions_with_similar_memory_accesses): New.
	(rdg_build_partitions): Call
	fuse_partitions_with_similar_memory_accesses.

	* gfortran.dg/ldist-1.f90: Adjust pattern.
	* gfortran.dg/ldist-pr43023.f90: New.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/ldist-pr43023.f90
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/gfortran.dg/ldist-1.f90
    branches/gcc-4_5-branch/gcc/tree-data-ref.c
    branches/gcc-4_5-branch/gcc/tree-data-ref.h
    branches/gcc-4_5-branch/gcc/tree-loop-distribution.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]