Skip to content
Snippets Groups Projects
Commit b2f26af3 authored by Richard Biener's avatar Richard Biener
Browse files

tree-optimization/95219 - improve IV selection for induction

This improves code generation with SSE2 for the testcase by
making sure to only generate a single IV when the group size
is a multiple of the vector size.  It also adjusts the testcase
which was passing before.

2020-05-20  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/95219
	* tree-vect-loop.c (vectorizable_induction): Reduce
	group_size before computing the number of required IVs.

	* gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c: Adjust.
parent 130bb4c7
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment