[Bug middle-end/53408] [4.6/4.7 Regression] ICE in get_initial_def_for_induction, at tree-vect-loop.c:3222

2012-05-22 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53408

--- Comment #5 from Richard Guenther rguenth at gcc dot gnu.org 2012-05-22 
10:46:25 UTC ---
Author: rguenth
Date: Tue May 22 10:46:21 2012
New Revision: 187770

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187770
Log:
2012-05-22  Richard Guenther  rguent...@suse.de

PR tree-optimization/53408
* tree-vect-loop.c (vectorizable_induction): Properly check
the restriction that we cannot handle induction results from
the inner loop outside of the outer loop.

* gcc.dg/torture/pr53408.c: New testcase.

Added:
branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/torture/pr53408.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/tree-vect-loop.c


[Bug middle-end/53408] [4.6/4.7 Regression] ICE in get_initial_def_for_induction, at tree-vect-loop.c:3222

2012-05-21 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53408

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

  Known to work||4.8.0
Summary|[4.6/4.7/4.8 Regression]|[4.6/4.7 Regression] ICE in
   |ICE in  |get_initial_def_for_inducti
   |get_initial_def_for_inducti |on, at
   |on, at  |tree-vect-loop.c:3222
   |tree-vect-loop.c:3222   |

--- Comment #4 from Richard Guenther rguenth at gcc dot gnu.org 2012-05-21 
12:46:26 UTC ---
Fixed on trunk sofar.