http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46723
--- Comment #14 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-01 17:04:32 UTC --- Author: rguenth Date: Tue Mar 1 17:04:26 2011 New Revision: 170595 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170595 Log: 2011-03-01 Richard Guenther <rguent...@suse.de> Backport from mainline 2011-03-01 Richard Guenther <rguent...@suse.de> PR tree-optimization/47890 * tree-vect-loop.c (get_initial_def_for_induction): Set related stmt properly. * gcc.dg/torture/pr47890.c: New testcase. 2010-12-01 Richard Guenther <rguent...@suse.de> PR tree-optimization/46723 * tree-vect-loop.c (get_initial_def_for_induction): Strip conversions from the induction evolution and apply it to the result instead. * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle assigns for induction defs. * gcc.dg/torture/pr46723.c: New testcase. Added: branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/torture/pr46723.c branches/gcc-4_5-branch/gcc/testsuite/gcc.dg/torture/pr47890.c Modified: branches/gcc-4_5-branch/gcc/ChangeLog branches/gcc-4_5-branch/gcc/testsuite/ChangeLog branches/gcc-4_5-branch/gcc/tree-vect-loop.c branches/gcc-4_5-branch/gcc/tree-vect-stmts.c