From: Bruno Cardoso Lopes Date: Mon, 11 Jul 2011 23:33:46 +0000 (+0000) Subject: Disable avx feature from corei7-avx, and use -mavx for now. Right now, if -mavx is X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e02d391ffef647ba0d48b85e211a94d9fb83393f;p=clang Disable avx feature from corei7-avx, and use -mavx for now. Right now, if -mavx is 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 --- diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 0a2c14ec9a..b8123006b8 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -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" ||