tree-optimization/105219 - bogus max iters for vectorized epilogue
authorRichard Biener <rguenther@suse.de>
Wed, 27 Apr 2022 12:06:12 +0000 (14:06 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 28 Apr 2022 06:06:52 +0000 (08:06 +0200)
commitf27848a5dc4d3b16cd4112bddcb59e0916eba623
treecf6a126f05a2d77182cdd45e354249beebf0ad45
parent84c1c9b013faf8cdac31db3f6612bd9d5f70ddb3
tree-optimization/105219 - bogus max iters for vectorized epilogue

The following makes sure to take into account prologue peeling
when trying to narrow down the maximum number of iterations
computed for the vectorized epilogue.  A similar issue exists when
peeling for gaps.

2022-04-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105219
* tree-vect-loop.cc (vect_transform_loop): Disable
special code narrowing the vectorized epilogue max
iterations when peeling for alignment or gaps was in effect.

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