On May 20, 2013, at 9:40 AM, Sandra Loosemore <san...@codesourcery.com> wrote: > The original patch only increased the alignment of local arrays, which works > because the stack is already aligned at 16 bytes for Altivec. The comments > on the original patch submission were that this should apply to all arrays > and that it should also look for structs containing arrays that would benefit > from being 16-byte-aligned as well.
It'd be nice if something machine independent can figure out when to add extra alignment to data in order for a vectorizer to make better use, then per port work like this isn't as necessary. Don't hit me. :-) Until such time, I do think doing this in the port is fine.