tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF with SSA_NAME address...
authorJakub Jelinek <jakub@redhat.com>
Mon, 8 Jul 2019 22:11:59 +0000 (00:11 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 8 Jul 2019 22:11:59 +0000 (00:11 +0200)
commit6cda84b509af152b2ea2cfc48f896cb7b776548d
tree5151ee337a9fdc75b10037a4bd232f54d2c54467
parent9c6e2f8274d1e6a621e410dc945488aa9ff6f779
tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF with SSA_NAME address of POINTER_PLUS_EXPR.

* tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
and casts in offset when different, both through gimple stmts
and through trees.  Rewritten using loops to minimize code duplication
for each operand.

* g++.dg/vect/simd-6.cc: Replace xfail with target x86.
* g++.dg/vect/simd-9.cc: Likewise.

* testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
* testsuite/libgomp.c++/scan-16.C: Likewise.

From-SVN: r273249
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/simd-6.cc
gcc/testsuite/g++.dg/vect/simd-9.cc
gcc/tree-vect-stmts.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/scan-13.C
libgomp/testsuite/libgomp.c++/scan-16.C