aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-02-14 08:07:58 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-02-14 08:07:58 +0000
commit82eaf628b4c9574f297bc1d8c44ae5237bc62a8c (patch)
treee886628805f2742202923381e85f5c5c634b5311 /lib/Target/X86/X86Subtarget.cpp
parent976e110c0b7ceb2f22f33259df0d2382ce7dbf31 (diff)
Enable SSE (for the right subtargets)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index 2a65013c23..e5fea9aa97 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -16,11 +16,10 @@
#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;
}