Commit bcda485b by Richard Biener Committed by Richard Biener

tree-vect-loop.c (vect_transform_loop): Properly compute upper bound for the…

tree-vect-loop.c (vect_transform_loop): Properly compute upper bound for the epilogue when doing epilogue vectorization.

2018-12-03  Richard Biener  <rguenther@suse.de>

	* tree-vect-loop.c (vect_transform_loop): Properly compute
	upper bound for the epilogue when doing epilogue vectorization.

From-SVN: r266737
parent 3eec96ce
2018-12-03 Richard Biener <rguenther@suse.de>
* tree-vect-loop.c (vect_transform_loop): Properly compute
upper bound for the epilogue when doing epilogue vectorization.
2018-12-03 Ilya Leoshkevich <iii@linux.ibm.com> 2018-12-03 Ilya Leoshkevich <iii@linux.ibm.com>
PR target/80080 PR target/80080
...@@ -8548,9 +8548,12 @@ vect_transform_loop (loop_vec_info loop_vinfo) ...@@ -8548,9 +8548,12 @@ vect_transform_loop (loop_vec_info loop_vinfo)
{ {
unsigned int eiters unsigned int eiters
= (LOOP_VINFO_INT_NITERS (loop_vinfo) = (LOOP_VINFO_INT_NITERS (loop_vinfo)
- LOOP_VINFO_PEELING_FOR_ALIGNMENT (loop_vinfo)); - LOOP_VINFO_PEELING_FOR_ALIGNMENT (loop_vinfo)
eiters = eiters % lowest_vf; - LOOP_VINFO_PEELING_FOR_GAPS (loop_vinfo));
eiters
= eiters % lowest_vf + LOOP_VINFO_PEELING_FOR_GAPS (loop_vinfo);
epilogue->nb_iterations_upper_bound = eiters - 1; epilogue->nb_iterations_upper_bound = eiters - 1;
epilogue->any_upper_bound = true;
unsigned int ratio; unsigned int ratio;
while (next_size < vector_sizes.length () while (next_size < vector_sizes.length ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment