Enable SSE (for the right subtargets)
authorEvan Cheng <evan.cheng@apple.com>
Tue, 14 Feb 2006 08:07:58 +0000 (08:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 14 Feb 2006 08:07:58 +0000 (08:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.cpp

index 2a65013c2313b53efc259f696089a102c433b2ac..e5fea9aa97aa833d30d66e3a8fc57c98994810e0 100644 (file)
 #include "X86GenSubtarget.inc"
 using namespace llvm;
 
-// FIXME: temporary.
 #include "llvm/Support/CommandLine.h"
 namespace {
-  cl::opt<bool> EnableSSE("enable-x86-sse", cl::Hidden,
-                          cl::desc("Enable sse on X86"));
+  cl::opt<bool> DisableSSE("disable-x86-sse", cl::Hidden,
+                          cl::desc("Disable sse on X86"));
 }
 
 /// GetCpuIDAndInfo - Execute the specified cpuid and return the 4 values in the
@@ -167,9 +166,7 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS) {
   // Default to ELF unless otherwise specified.
   TargetType = isELF;
   
-  // FIXME: Force these off until they work.  An llc-beta option should turn
-  // them back on.
-  if (!EnableSSE) {
+  if (DisableSSE) {
     X86SSELevel = NoMMXSSE;
     X863DNowLevel = NoThreeDNow;
   }