[cfe-commits] r134939 - /cfe/trunk/lib/Basic/Targets.cpp

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Mon Jul 11 16:33:46 PDT 2011


Author: bruno
Date: Mon Jul 11 18:33:46 2011
New Revision: 134939

URL: http://llvm.org/viewvc/llvm-project?rev=134939&view=rev
Log:
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).

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=134939&r1=134938&r2=134939&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Mon Jul 11 18:33:46 2011
@@ -1220,7 +1220,7 @@
     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" ||





More information about the cfe-commits mailing list