2018-06-26 Richard Biener <rguenther@suse.de>
PR tree-optimization/86287
PR bootstrap/86316
* tree-vect-loop.c (vect_transform_loop_stmt): Fix read-after-free.
(vect_analyze_loop): Initialize n_stmts.
From-SVN: r262132
+2018-06-26 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/86287
+ PR bootstrap/86316
+ * tree-vect-loop.c (vect_transform_loop_stmt): Fix read-after-free.
+ (vect_analyze_loop): Initialize n_stmts.
+
2018-06-26 Richard Biener <rguenther@suse.de>
PR middle-end/86271
return NULL;
}
- unsigned n_stmts;
+ unsigned n_stmts = 0;
poly_uint64 autodetected_vector_size = 0;
while (1)
{
/* SLP. Schedule all the SLP instances when the first SLP stmt is
reached. */
- if (STMT_SLP_TYPE (stmt_info))
+ if (slp_vect_type slptype = STMT_SLP_TYPE (stmt_info))
{
+
if (!*slp_scheduled)
{
*slp_scheduled = true;
}
/* Hybrid SLP stmts must be vectorized in addition to SLP. */
- if (PURE_SLP_STMT (stmt_info))
+ if (slptype == pure_slp)
return;
}