https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78348
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Wed Nov 16 08:42:20 2016 New Revision: 242470 URL: https://gcc.gnu.org/viewcvs?rev=242470&root=gcc&view=rev Log: 2016-11-16 Richard Biener <rguent...@suse.de> PR tree-optimization/78348 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE. (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition. (classify_partition): Set PKIND_MEMCPY if dependence analysis revealed no dependency, PKIND_MEMMOVE otherwise. * gcc.dg/tree-ssa/ldist-24.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/ldist-24.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-loop-distribution.c