diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-11-26 11:09:08 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-11-26 11:09:08 +0000 |
commit | fb5e6804f3aca40c78d88d6810ad22853816ae06 (patch) | |
tree | bbe5a26bd8edcfde30bdb3239091c0ec23fdf223 /lib/Target/X86/X86Subtarget.cpp | |
parent | 86a735396ab4804a06e76d1b4ce49dbd44c35827 (diff) | |
download | external_llvm-fb5e6804f3aca40c78d88d6810ad22853816ae06.zip external_llvm-fb5e6804f3aca40c78d88d6810ad22853816ae06.tar.gz external_llvm-fb5e6804f3aca40c78d88d6810ad22853816ae06.tar.bz2 |
Merging r195632:
------------------------------------------------------------------------
r195632 | tnorthover | 2013-11-25 01:52:59 -0800 (Mon, 25 Nov 2013) | 3 lines
X86: enable AVX2 under Haswell native compilation
Patch by Adam Strzelecki
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@195737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 05db662..01353b2 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -276,7 +276,12 @@ void X86Subtarget::AutoDetectSubtargetFeatures() { (Family == 6 && Model == 0x2F) || // Westmere: Westmere-EX (Family == 6 && Model == 0x2A) || // SandyBridge (Family == 6 && Model == 0x2D) || // SandyBridge: SandyBridge-E* - (Family == 6 && Model == 0x3A))) {// IvyBridge + (Family == 6 && Model == 0x3A) || // IvyBridge + (Family == 6 && Model == 0x3E) || // IvyBridge EP + (Family == 6 && Model == 0x3C) || // Haswell + (Family == 6 && Model == 0x3F) || // ... + (Family == 6 && Model == 0x45) || // ... + (Family == 6 && Model == 0x46))) { // ... IsUAMemFast = true; ToggleFeature(X86::FeatureFastUAMem); } |