This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66917] [4.9/5 regression] ARM: NEON: memcpy compiles to vst1 with incorrect alignment
- From: "ctice at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Sep 2015 20:57:01 +0000
- Subject: [Bug tree-optimization/66917] [4.9/5 regression] ARM: NEON: memcpy compiles to vst1 with incorrect alignment
- Auto-submitted: auto-generated
- References: <bug-66917-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917
--- Comment #21 from ctice at gcc dot gnu.org ---
Author: ctice
Date: Thu Sep 24 20:56:29 2015
New Revision: 228099
URL: https://gcc.gnu.org/viewcvs?rev=228099&root=gcc&view=rev
Log:
Backport r226487 from GCC FSF mainline:
r226487 | rguenth | 2015-08-03 00:13:36 -0700 (Mon, 03 Aug 2015) | 15 lines
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.
Modified:
branches/google/gcc-4_9-mobile/gcc/tree-vect-data-refs.c
branches/google/gcc-4_9-mobile/gcc/tree-vect-stmts.c
branches/google/gcc-4_9-mobile/gcc/tree-vectorizer.h