tree-optimization/97753 - fix SLP induction vect
authorRichard Biener <rguenther@suse.de>
Mon, 9 Nov 2020 13:03:14 +0000 (14:03 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 9 Nov 2020 13:57:10 +0000 (14:57 +0100)
commitf5761c318a5a973ba2e4e5b09a5213f4e3ad0570
treed0bc0633720e95d0dbb215c10418720699f404a8
parentec735bc7646500570d9d6e45ef335e6d547b1433
tree-optimization/97753 - fix SLP induction vect

This fixes updating of the step vectors when filling up to group_size.

2020-11-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97753
* tree-vect-loop.c (vectorizable_induction): Fill vec_steps
when CSEing inside the group.

* gcc.dg/vect/pr97753.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr97753.c [new file with mode: 0644]
gcc/tree-vect-loop.c