From: Roman Divacky Date: Tue, 5 Apr 2011 20:32:44 +0000 (+0000) Subject: Enable sse4 and aes for SandyBridge. Leave avx support commented out for now. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcaa3b8f1ac945d64cbf6d4d659271b6ef70068b;p=clang Enable sse4 and aes for SandyBridge. Leave avx support commented out for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128923 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 973518312d..0dcb959039 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -1084,8 +1084,11 @@ void X86TargetInfo::getDefaultFeatures(const std::string &CPU, else if (CPU == "corei7") { setFeatureEnabled(Features, "sse4", true); setFeatureEnabled(Features, "aes", true); - } - else if (CPU == "k6" || CPU == "winchip-c6") + } else if (CPU == "sandybridge") { + setFeatureEnabled(Features, "sse4", true); + setFeatureEnabled(Features, "aes", true); +// setFeatureEnabled(Features, "avx", true); + } else if (CPU == "k6" || CPU == "winchip-c6") setFeatureEnabled(Features, "mmx", true); else if (CPU == "k6-2" || CPU == "k6-3" || CPU == "athlon" || CPU == "athlon-tbird" || CPU == "winchip2" || CPU == "c3") {