2012-02-20 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2012 15:15:52 +0000 (15:15 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Feb 2012 15:15:52 +0000 (15:15 +0000)
commite4a9141c4ecdc26f26dc3656f45e6843a67505b4
tree52b584af322306a457efe446b5f1f3d74618ee07
parentdad695c5426b5a6f0d5d46de56c9878027a5d4f3
2012-02-20  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52298
* tree-vect-stmts.c (vectorizable_store): Properly use
STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
outer loops.
(vectorizable_load): Likewise.
* tree-vect-data-refs.c (vect_analyze_data_ref_access):
Access DR_STEP after ensuring it is not NULL.

* gcc.dg/torture/pr52298.c: New testcase.
* gcc.dg/vect/pr52298.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184396 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr52298.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr52298.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c
gcc/tree-vect-stmts.c