re PR tree-optimization/68379 (BB vectorization: definition in block 13 follows the...
authorRichard Biener <rguenther@suse.de>
Tue, 1 Dec 2015 14:24:54 +0000 (14:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 1 Dec 2015 14:24:54 +0000 (14:24 +0000)
commit4f0a0218d6df34ec612a61aef50b95d79cd8d17f
tree25b658c07a9bfa509d5726fe009464b9133a2068
parent2d3f4bf73cdb878c0fee25b962b6a80113d5d80e
re PR tree-optimization/68379 (BB vectorization: definition in block 13 follows the use for SSA_NAME)

2015-12-01  Richard Biener  <rguenther@suse.de>

PR tree-optimization/68379
* tree-vect-stmts.c (vectorizable_load): For BB vectorization
always base loads on the first used DR of a group.
* tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
Compute alignment of the first scalar element unconditionally.

* gcc.dg/torture/pr68379.c: New testcase.
* gfortran.dg/pr68379-1.f90: Likewise.
* gfortran.dg/pr68379-2.f: Likewise.

From-SVN: r231111
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr68379.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr68379-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr68379-2.f [new file with mode: 0644]
gcc/tree-vect-data-refs.c
gcc/tree-vect-stmts.c