tree-optimization/95219 - improve IV selection for induction
authorRichard Biener <rguenther@suse.de>
Wed, 20 May 2020 07:22:58 +0000 (09:22 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 20 May 2020 12:09:26 +0000 (14:09 +0200)
commitb2f26af32b5b031fce761aa090de9476a53e6e5a
treed856e2b9fad2e5c97d99a1070047700b5b8f2d99
parent130bb4c79295487c5fc203103d80e3b754640eb4
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.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c
gcc/tree-vect-loop.c