unsigned int group_size;
unsigned HOST_WIDE_INT gap;
bool single_element_p;
+ poly_int64 neg_ldst_offset = 0;
if (STMT_VINFO_GROUPED_ACCESS (stmt_info))
{
first_stmt_info = DR_GROUP_FIRST_ELEMENT (stmt_info);
/* ??? The VMAT_CONTIGUOUS_REVERSE code generation is
only correct for single element "interleaving" SLP. */
*memory_access_type = get_negative_load_store_type
- (vinfo, stmt_info, vectype, vls_type, 1, poffset);
+ (vinfo, stmt_info, vectype, vls_type, 1,
+ &neg_ldst_offset);
else
{
/* Try to use consecutive accesses of DR_GROUP_SIZE elements,
masked_p, gs_info, elsvals))
*memory_access_type = VMAT_GATHER_SCATTER;
+ if (*memory_access_type == VMAT_CONTIGUOUS_DOWN
+ || *memory_access_type == VMAT_CONTIGUOUS_REVERSE)
+ *poffset = neg_ldst_offset;
+
if (*memory_access_type == VMAT_GATHER_SCATTER
|| *memory_access_type == VMAT_ELEMENTWISE
|| *memory_access_type == VMAT_STRIDED_SLP