re PR tree-optimization/91010 (ICE: Segmentation fault (in location_wrapper_p))
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Jun 2019 21:23:09 +0000 (23:23 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 27 Jun 2019 21:23:09 +0000 (23:23 +0200)
commit12213acba9cff14bb8e37bbafd5918ba3265f829
treee87f6bd93529aead07a6aa019c457649c8e193ab
parent08b219921f7f4430fe66391ed8e3302b4fd049f1
re PR tree-optimization/91010 (ICE: Segmentation fault (in location_wrapper_p))

PR tree-optimization/91010
* tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
return true.  Otherwise, don't call operand_equal_p if offset1 or
offset2 is NULL and just return false.

* g++.dg/vect/simd-10.cc: New test.

From-SVN: r272763
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/simd-10.cc [new file with mode: 0644]
gcc/tree-vect-stmts.c