re PR fortran/62283 (basic-block vectorization fails)
authorRichard Biener <rguenther@suse.de>
Thu, 28 Aug 2014 13:13:45 +0000 (13:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 28 Aug 2014 13:13:45 +0000 (13:13 +0000)
commitb1aef01e16b01f3b07a14c5c7cac92d98553517f
treeb4e458d2703a45df4467d10ef7a50acef78d5b09
parentf22ae1ecbd724ed01423a2132b5631a5d7c0ee10
re PR fortran/62283 (basic-block vectorization fails)

2014-08-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/62283
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
Do not peel loops for alignment where the vector loop likely
doesn't run at least VF times.

* gfortran.dg/vect/pr62283.f: New testcase.
* gcc.dg/tree-ssa/cunroll-5.c: Adjust.
* gcc.dg/vect/costmodel/i386/costmodel-vect-31.c: Likewise.
* gcc.dg/vect/costmodel/i386/costmodel-vect-33.c: Likewise.
* gcc.dg/vect/costmodel/x86_64/costmodel-vect-31.c: Likewise.
* gcc.dg/vect/costmodel/x86_64/costmodel-vect-33.c: Likewise.
* gcc.dg/vect/vect-33.c: Likewise.

From-SVN: r214678
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/cunroll-5.c
gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-31.c
gcc/testsuite/gcc.dg/vect/costmodel/i386/costmodel-vect-33.c
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-31.c
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-vect-33.c
gcc/testsuite/gcc.dg/vect/vect-33.c
gcc/testsuite/gfortran.dg/vect/pr62283.f [new file with mode: 0644]
gcc/tree-vect-data-refs.c