2018-05-28 Richard Biener <rguenther@suse.de>
PR tree-optimization/85933
* tree-vect-data-refs.c (vect_record_base_alignments): Only
look at stmts marked as vectorizable.
From-SVN: r260848
+2018-05-28 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/85933
+ * tree-vect-data-refs.c (vect_record_base_alignments): Only
+ look at stmts marked as vectorizable.
+
+2018-05-28 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/85934
+ * tree-vect-generic.c (expand_vector_operations_1): Hoist
+ vector boolean check before scalar optimization.
+
2018-05-28 Jakub Jelinek <jakub@redhat.com>
* doc/invoke.texi (ARM Options): Use @item instead of @itemx
data_reference *dr;
unsigned int i;
FOR_EACH_VEC_ELT (vinfo->datarefs, i, dr)
- if (!DR_IS_CONDITIONAL_IN_STMT (dr))
+ {
+ gimple *stmt = DR_STMT (dr);
+ if (!DR_IS_CONDITIONAL_IN_STMT (dr)
+ && STMT_VINFO_VECTORIZABLE (vinfo_for_stmt (stmt)))
{
gimple *stmt = DR_STMT (dr);
vect_record_base_alignment (vinfo, stmt, &DR_INNERMOST (dr));
(vinfo, stmt, &STMT_VINFO_DR_WRT_VEC_LOOP (stmt_info));
}
}
+ }
}
/* Return the target alignment for the vectorized form of DR. */