-
- Downloads
re PR tree-optimization/53081 (memcpy/memset loop recognition)
2012-06-06 Richard Guenther <rguenther@suse.de> PR tree-optimization/53081 * tree-data-ref.h (adjacent_store_dr_p): Rename to ... (adjacent_dr_p): ... this and make it work for reads, too. * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY. (struct partition_s): Change main_stmt to main_dr, add secondary_dr member. (build_size_arg_loc): Change to date data-reference and not gimplify here. (build_addr_arg_loc): New function split out from ... (generate_memset_builtin): ... here. Use it and simplify. (generate_memcpy_builtin): New function. (generate_code_for_partition): Adjust. (classify_partition): Streamline pattern detection. Detect memcpy. (ldist_gen): Adjust. (tree_loop_distribution): Adjust seed statements for memcpy recognition. * gcc.dg/tree-ssa/ldist-20.c: New testcase. * gcc.dg/tree-ssa/loop-19.c: Add -fno-tree-loop-distribute-patterns. From-SVN: r188261
Showing
- gcc/ChangeLog 20 additions, 0 deletionsgcc/ChangeLog
- gcc/testsuite/ChangeLog 6 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gcc.dg/tree-ssa/ldist-20.c 37 additions, 0 deletionsgcc/testsuite/gcc.dg/tree-ssa/ldist-20.c
- gcc/testsuite/gcc.dg/tree-ssa/loop-19.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/tree-ssa/loop-19.c
- gcc/tree-data-ref.h 1 addition, 4 deletionsgcc/tree-data-ref.h
- gcc/tree-loop-distribution.c 170 additions, 97 deletionsgcc/tree-loop-distribution.c
Loading
Please register or sign in to comment