PR tree-optimization/93247 - ICE in get_load_store_type
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 14 Jan 2020 22:24:37 +0000 (22:24 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Wed, 15 Jan 2020 13:35:52 +0000 (13:35 +0000)
commit711421af001b8f4f044f485c78f1d07ed5201656
tree271bfca9486b6342280c64fc2722995777fff410
parent86c3a7d891f9f175d09d61f5ce163c6dc5ce681f
PR tree-optimization/93247 - ICE in get_load_store_type

My earlier update_epilogue_loop_vinfo patch introduced an ICE on these
tests for AVX512.  If we use pattern stmts, STMT_VINFO_GATHER_SCATTER_P
is valid for both the original stmt and the pattern stmt, but
STMT_VINFO_MEMORY_ACCESS_TYPE is valid only for the latter.

2020-01-15  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
PR tree-optimization/93247
* tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
type of the stmt that we're going to vectorize.

gcc/testsuite/
PR tree-optimization/93247
* gcc.dg/vect/pr93247-1.c: New test.
* gcc.dg/vect/pr93247-2.c: Likewise.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr93247-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr93247-2.c [new file with mode: 0644]
gcc/tree-vect-loop.c