Don't vectorise single-iteration epilogues
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 6 Nov 2019 14:03:08 +0000 (14:03 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 6 Nov 2019 14:03:08 +0000 (14:03 +0000)
commit4b205bf82d06c4d9d0ae7b78e54c712d79d5b021
tree2d4311cdbc02bb49fa26ddb681528e5306796259
parent4653da0b6ec2a5c272d9cd98a970f0037f1a5789
Don't vectorise single-iteration epilogues

With a later patch I saw a case in which we peeled a single iteration
for gaps but didn't need to peel further iterations to make up a full
vector.  We then tried to vectorise the single-iteration epilogue.

2019-11-06  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
the epilogue if there are peeled iterations for it to handle.

From-SVN: r277886
gcc/ChangeLog
gcc/tree-vect-loop.c