re PR tree-optimization/66917 (ARM: NEON: memcpy compiles to vst1 with incorrect...
authorRichard Biener <rguenther@suse.de>
Mon, 3 Aug 2015 07:13:36 +0000 (07:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 3 Aug 2015 07:13:36 +0000 (07:13 +0000)
commit52639a61657c667c68a4a3e0656a67ed1a95a9b0
tree03864e5caa088bc8f553b9ca5791287f5d2b5a45
parent94b8fdccca7aa703f4cafc57eef3a7f8776e1290
re PR tree-optimization/66917 (ARM: NEON: memcpy compiles to vst1 with incorrect alignment)

2015-08-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66917
* tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
field.
(DR_VECT_AUX): New macro.
(set_dr_misalignment): Adjust.
(dr_misalignment): Likewise.
* tree-vect-data-refs.c (vect_compute_data_ref_alignment):
Compute whether the base is at least element aligned.
* tree-vect-stmts.c (ensure_base_align): Adjust.
(vectorizable_store): If the base is not element aligned
preserve alignment of the original access if misalignment is unknown.
(vectorizable_load): Likewise.

From-SVN: r226487
gcc/ChangeLog
gcc/tree-vect-data-refs.c
gcc/tree-vect-stmts.c
gcc/tree-vectorizer.h