[vect] PR 92351: When peeling for alignment make alignment of epilogues unknown
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Fri, 8 Nov 2019 13:52:56 +0000 (13:52 +0000)
committerAndre Vieira <avieira@gcc.gnu.org>
Fri, 8 Nov 2019 13:52:56 +0000 (13:52 +0000)
commit4e9d58d16767b1bc686f0c4b3bd2da25dc71e8f3
tree795f7853092339a2e3fdb5c58960edf7e4cd39dd
parent14df3a17aa243fd58be2aa03f787a2da5c94ae97
[vect] PR 92351: When peeling for alignment make alignment of epilogues unknown

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

PR tree-optimization/92351
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
peeling the main loop for alignment, make sure to set the misalignment
of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.

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

PR tree-optimization/92351
* gcc.dg/vect/vect-peel-2.c: Disable epilogue vectorization and
split the source of this test to...
* gcc.dg/vect/vect-peel-2-src.c: ... This.
* gcc.dg/vect/vect-peel-2-epilogues.c: New test.

From-SVN: r277974
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-peel-2-epilogues.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-peel-2-src.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-peel-2.c
gcc/tree-vect-data-refs.c