http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51070
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-11-10 13:46:35 UTC --- Author: rguenth Date: Thu Nov 10 13:46:27 2011 New Revision: 181255 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181255 Log: 2011-11-10 Richard Guenther <rguent...@suse.de> PR tree-optimization/51070 * tree-loop-distribution.c (generate_builtin): Do not replace the loop with a builtin if the partition contains statements which results are used outside of the loop. (pass_loop_distribution): Verify and collect. * gcc.dg/torture/pr51070.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr51070.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-loop-distribution.c