re PR tree-optimization/18400 (wrong unrolling after vectorization due to invalid loop->nb_iterations)
PR tree-opt/18400 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations. (vect_transform_loop_bound): Set loop->nb_iterations. From-SVN: r90626
This commit is contained in:
parent
4951c3fd4c
commit
d6f6ef21b2
@ -1,3 +1,9 @@
|
||||
2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
|
||||
|
||||
PR tree-opt/18400
|
||||
* tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
|
||||
(vect_transform_loop_bound): Set loop->nb_iterations.
|
||||
|
||||
2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
|
||||
Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
|
@ -636,6 +636,8 @@ make_loop_iterate_ntimes (struct loop *loop, tree niters,
|
||||
|
||||
if (vect_debug_stats (loop) || vect_debug_details (loop))
|
||||
print_generic_expr (dump_file, cond_stmt, TDF_SLIM);
|
||||
|
||||
loop->nb_iterations = niters;
|
||||
}
|
||||
|
||||
|
||||
@ -2883,6 +2885,8 @@ vect_transform_loop_bound (loop_vec_info loop_vinfo, tree niters)
|
||||
|
||||
if (vect_debug_details (NULL))
|
||||
print_generic_expr (dump_file, cond_stmt, TDF_SLIM);
|
||||
|
||||
loop->nb_iterations = new_loop_bound;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user