The following adjusts vect_compute_single_scalar_iteration_cost to
record stmts as vect_body rather than vect_prologue so that
scalar_costs->body_cost () will not be zero.
* tree-vect-loop.cc (vect_compute_single_scalar_iteration_cost):
Record stmt cost to vect_body.
/* We are using vect_prologue here to avoid scaling twice
by the inner loop factor. */
record_stmt_cost (&LOOP_VINFO_SCALAR_ITERATION_COST (loop_vinfo),
- factor, kind, stmt_info, 0, vect_prologue);
+ factor, kind, stmt_info, 0, vect_body);
}
}