]> granicus.if.org Git - clang/commitdiff
Disable avx feature from corei7-avx, and use -mavx for now. Right now, if -mavx is
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 11 Jul 2011 23:33:46 +0000 (23:33 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 11 Jul 2011 23:33:46 +0000 (23:33 +0000)
specified, 128 avx code is used and we're not sure yet if this the behavior
we want (and if it does, some improvements are needed before relying on it).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134939 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index 0a2c14ec9a0b43db9c9a764e9b250f1272556edc..b8123006b8654de5c64273c096033a01d1a074c5 100644 (file)
@@ -1220,7 +1220,7 @@ void X86TargetInfo::getDefaultFeatures(const std::string &CPU,
     setFeatureEnabled(Features, "mmx", true);
     setFeatureEnabled(Features, "sse4", true);
     setFeatureEnabled(Features, "aes", true);
-    setFeatureEnabled(Features, "avx", 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" ||