aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-06-06 09:45:27 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-06-06 09:45:27 +0000
commitd0582dc1815c0fb684b97dc88f3a3152d5f517f7 (patch)
tree9f8f31aa67b331c5ef8513c22367a259275a267c /gcc/cp
parent4ad4fa63349426505aecfea69a8e54aae3f88870 (diff)
downloadgcc-d0582dc1815c0fb684b97dc88f3a3152d5f517f7.zip
gcc-d0582dc1815c0fb684b97dc88f3a3152d5f517f7.tar.gz
gcc-d0582dc1815c0fb684b97dc88f3a3152d5f517f7.tar.bz2
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
Diffstat (limited to 'gcc/cp')
0 files changed, 0 insertions, 0 deletions