OSDN Git Service

Make llc use getHostCPUFeatures when 'native' is specified for cpu.
authorCraig Topper <craig.topper@gmail.com>
Tue, 31 Mar 2015 05:52:57 +0000 (05:52 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 31 Mar 2015 05:52:57 +0000 (05:52 +0000)
commit9a7c0031de3ac332a5ca6b00b64c4cc4020620b4
treefece339a0f43cde42f83a3f34a01e4744ce68cdc
parentcaa12e03529cafdbf905459c4dc6d608f2e61d64
Make llc use getHostCPUFeatures when 'native' is specified for cpu.

This is necessary for x86 where not all Sandybridge, Ivybrige, Haswell, and Broadwell CPUs support AVX. Currently we modify the CPU name back to Nehalem for this case, but that turns off additional features for these CPUs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233673 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/SubtargetFeature.h
lib/MC/SubtargetFeature.cpp
tools/llc/llc.cpp