]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/46723 (internal compiler error: in get_initial_def_for_induct...
authorRichard Guenther <rguenther@suse.de>
Thu, 2 Dec 2010 16:23:20 +0000 (16:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Dec 2010 16:23:20 +0000 (16:23 +0000)
commit6dbbece65abb5765fedddfe4ab01950b61d05c57
tree9731011d784b5a20bbfc11e4a58be14bb690acd5
parent3b38fb7c7dc653b91b755d8f60155f3404b70e2e
re PR tree-optimization/46723 (internal compiler error: in get_initial_def_for_induction, at tree-vect-loop.c:2431)

2010-12-02  Richard Guenther  <rguenther@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.

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