2018-04-24 Richard Biener <rguenther@suse.de>
PR target/85491
* config/i386/i386.c (ix86_add_stmt_cost): Restrict strided
load cost increase to the case of non-constant step.
From-SVN: r259592
+2018-04-24 Richard Biener <rguenther@suse.de>
+
+ PR target/85491
+ * config/i386/i386.c (ix86_add_stmt_cost): Restrict strided
+ load cost increase to the case of non-constant step.
+
2018-04-24 Jakub Jelinek <jakub@redhat.com>
PR target/84828
construction cost by the number of elements involved. */
if (kind == vec_construct
&& stmt_info
- && stmt_info->type == load_vec_info_type
- && stmt_info->memory_access_type == VMAT_ELEMENTWISE)
+ && STMT_VINFO_TYPE (stmt_info) == load_vec_info_type
+ && STMT_VINFO_MEMORY_ACCESS_TYPE (stmt_info) == VMAT_ELEMENTWISE
+ && TREE_CODE (DR_STEP (STMT_VINFO_DATA_REF (stmt_info))) != INTEGER_CST)
{
stmt_cost = ix86_builtin_vectorization_cost (kind, vectype, misalign);
stmt_cost *= TYPE_VECTOR_SUBPARTS (vectype);