]> granicus.if.org Git - clang/commit
Revert r333791 "Cap "voluntary" vector alignment at 16 for all Darwin platforms."
authorReid Kleckner <rnk@google.com>
Mon, 4 Jun 2018 21:39:20 +0000 (21:39 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 4 Jun 2018 21:39:20 +0000 (21:39 +0000)
commitfaf42a8ee2def65865caf64877b20c6654ae0846
tree78daab19cc5d1a4699549e15f9c2dcef17f2d76a
parent6d27f13d42457bbec41fc9cd1c0aac0d42358bf7
Revert r333791 "Cap "voluntary" vector alignment at 16 for all Darwin platforms."

Adding __attribute__((aligned(32))) to __m256 breaks the implementation
of _mm256_loadu_ps on Windows. On Windows, alignment attributes have
higher precedence than packing attributes.

We also might want to carefully consider the consequences of changing
our vector typedefs, since many users copy them and invent their own
new, non-Intel specific vector type names.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333958 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets/OSTargets.h
lib/Basic/Targets/X86.h
lib/CodeGen/CGBuiltin.cpp
lib/Headers/avx512fintrin.h
lib/Headers/avxintrin.h
test/CodeGen/arm-swiftcall.c
test/CodeGen/vector-alignment.c
test/CodeGenCXX/align-avx-complete-objects.cpp