[vect]Account for epilogue's peeling for gaps when checking if we have enough
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Mon, 11 Nov 2019 12:07:04 +0000 (12:07 +0000)
committerAndre Vieira <avieira@gcc.gnu.org>
Mon, 11 Nov 2019 12:07:04 +0000 (12:07 +0000)
commit87b47251924c7539a9a8e191587d118a14496473
treea75f70ee7521d8e1409a7babf689fcb2838a5e59
parent3f246567a44ba034c0b48f929c4d4586a4b914ed
[vect]Account for epilogue's peeling for gaps when checking if we have enough
niters for epilogue

gcc/ChangeLog:
2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
account when checking if there are enough iterations to vectorize
epilogue.

gcc/testsuite/ChangeLog:
2019-11-11  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* gcc.dg/vect/vect-reduc-epilogue-gaps.c: New test.

From-SVN: r278049
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-reduc-epilogue-gaps.c [new file with mode: 0644]
gcc/tree-vect-loop-manip.c