re PR middle-end/53408 (ICE in get_initial_def_for_induction, at tree-vect-loop.c...
authorRichard Guenther <rguenther@suse.de>
Mon, 21 May 2012 12:45:59 +0000 (12:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 May 2012 12:45:59 +0000 (12:45 +0000)
commit21039e0e003246c87d123bcd7099d411ac82a1fd
treef9e3d8cc6e12497d2fbf21bdd48492e542cb7cee
parent9b5effa449611ed3e8360d4e3440c6cc00c70035
re PR middle-end/53408 (ICE in get_initial_def_for_induction, at tree-vect-loop.c:3222)

2012-05-21  Richard Guenther  <rguenther@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.

From-SVN: r187710
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr53408.c [new file with mode: 0644]
gcc/tree-vect-loop.c