Message ID | nycvar.YFH.7.76.2010291234020.3652@elmra.sevgm.obk |
---|---|
State | New |
Headers | show |
Series | Consistently pass the vector type for scalar SLP cost compute | expand |
diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c index 0a7b8e61632..7a08908cde8 100644 --- a/gcc/tree-vect-slp.c +++ b/gcc/tree-vect-slp.c @@ -3937,7 +3937,8 @@ vect_bb_slp_scalar_cost (vec_info *vinfo, continue; else kind = scalar_stmt; - record_stmt_cost (cost_vec, 1, kind, orig_stmt_info, 0, vect_body); + record_stmt_cost (cost_vec, 1, kind, orig_stmt_info, + SLP_TREE_VECTYPE (node), 0, vect_body); } auto_vec<bool, 20> subtree_life;