Enable SSE (for the right subtargets)

llvm-svn: 26169
This commit is contained in:
Evan Cheng 2006-02-14 08:07:58 +00:00
parent 5cc208f9a9
commit 40b6eb9973
1 changed files with 3 additions and 6 deletions

View File

@ -16,11 +16,10 @@
#include "X86GenSubtarget.inc" #include "X86GenSubtarget.inc"
using namespace llvm; using namespace llvm;
// FIXME: temporary.
#include "llvm/Support/CommandLine.h" #include "llvm/Support/CommandLine.h"
namespace { namespace {
cl::opt<bool> EnableSSE("enable-x86-sse", cl::Hidden, cl::opt<bool> DisableSSE("disable-x86-sse", cl::Hidden,
cl::desc("Enable sse on X86")); cl::desc("Disable sse on X86"));
} }
/// GetCpuIDAndInfo - Execute the specified cpuid and return the 4 values in the /// 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. // Default to ELF unless otherwise specified.
TargetType = isELF; TargetType = isELF;
// FIXME: Force these off until they work. An llc-beta option should turn if (DisableSSE) {
// them back on.
if (!EnableSSE) {
X86SSELevel = NoMMXSSE; X86SSELevel = NoMMXSSE;
X863DNowLevel = NoThreeDNow; X863DNowLevel = NoThreeDNow;
} }