[cfe-commits] r128923 - /cfe/trunk/lib/Basic/Targets.cpp
Roman Divacky
rdivacky at freebsd.org
Tue Apr 5 13:32:44 PDT 2011
Author: rdivacky
Date: Tue Apr 5 15:32:44 2011
New Revision: 128923
URL: http://llvm.org/viewvc/llvm-project?rev=128923&view=rev
Log:
Enable sse4 and aes for SandyBridge. Leave avx support commented out for now.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=128923&r1=128922&r2=128923&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Tue Apr 5 15:32:44 2011
@@ -1084,8 +1084,11 @@
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") {
More information about the cfe-commits
mailing list