vect_gather_scatter_fn_p currently ICEs if offset_vectype is NULL.
This is an oversight in the patches that relax gather/scatter detection.
Catch this.
gcc/ChangeLog:
* tree-vect-data-refs.cc (vect_gather_scatter_fn_p): Bail if
offset_vectype is NULL.
tree offset_vectype = VECTOR_TYPE_P (offset_type)
? offset_type : get_vectype_for_scalar_type (vinfo, offset_type);
+ /* If there is no offset vectype, bail. */
+ if (!offset_vectype)
+ return false;
+
offset_type = TREE_TYPE (offset_vectype);
/* Get all supported configurations for this data vector type. */