tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle even zero DR_OFFSET...
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Jun 2019 21:38:35 +0000 (23:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Jun 2019 21:38:35 +0000 (23:38 +0200)
commitc13c129f8f49b41184f5b1c4b64d76d67db90dae
tree3ca866f42a378c7a70ab3a2f98620e7a9d88a692
parent8924e9dd7183b97ab101e09816c88c8c1aac2bf0
tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle even zero DR_OFFSET...

* tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
containing the offset as possible simd lane access.  Look through
widening conversion.  Move the
TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.

* g++.dg/vect/simd-2.cc: Don't xfail, instead expect vectorization on
x86.
* g++.dg/vect/simd-5.cc: Likewise.

From-SVN: r272575
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/simd-2.cc
gcc/testsuite/g++.dg/vect/simd-5.cc
gcc/tree-vect-data-refs.c