]> granicus.if.org Git - clang/commit
[X86] Use AVX features instead of ABI to init. SimdDefaultAlign.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 27 Aug 2015 22:24:56 +0000 (22:24 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 27 Aug 2015 22:24:56 +0000 (22:24 +0000)
commit0eb7705a99ce6e9cc7c66e414ffc83183229fd0f
treeeae98d695d93455a1a2c51125201dbecf0193044
parent77a43fc3b5ff393691cb0fbbbf79af3190b0b3a9
[X86] Use AVX features instead of ABI to init. SimdDefaultAlign.

The ABI string only exists to communicate with TargetCodeGenInfo.
Concretely, since we only used "avx*" ABI strings on x86_64 (as AVX
doesn't affect the i386 ABIs), this meant that, when initializing
SimdDefaultAlign, we would ignore AVX/AVX512 on i386, for no good
reason.

Instead, directly check the features. A similar change for
MaxVectorAlign will follow.

Differential Revision: http://reviews.llvm.org/D12390

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246228 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.cpp
test/OpenMP/simd_metadata.c