On Fri, Sep 9, 2016 at 10:45 AM, Friedman, Eli via cfe-commits < cfe-commits@lists.llvm.org> wrote:
> It probably makes sense to say that alloca should have the same alignment > as the default stack alignment, simply because it's hard to do anything > useful with completely unaligned memory. That said, the default stack > alignment is 4 bytes on 32-bit Windows, not 16. > Well, if the allocated size is dynamic, it would seem preferable to provide a pointer that's suitably-aligned for anything that can fit within it, and even on 32-bit x86 that means 16 byte alignment if we want to support SSE. But if the size is known, there doesn't seem to be any need to provide an alignment greater than the allocated size.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits