Enable sse4 and aes for SandyBridge. Leave avx support commented out for now.

llvm-svn: 128923
This commit is contained in:
Roman Divacky 2011-04-05 20:32:44 +00:00
parent e9c644d4a0
commit 27ec14fad7
1 changed files with 5 additions and 2 deletions

View File

@ -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") {