forked from OSchip/llvm-project
Enable -sse-domain-fix by default. What could possibly go wrong?
llvm-svn: 99931
This commit is contained in:
parent
231e99743a
commit
a654df84e6
|
@ -23,11 +23,6 @@
|
||||||
#include "llvm/Target/TargetRegistry.h"
|
#include "llvm/Target/TargetRegistry.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static cl::opt<bool>
|
|
||||||
SSEDomainFix("sse-domain-fix",
|
|
||||||
cl::desc("Enable fixing of SSE execution domain"),
|
|
||||||
cl::init(false), cl::Hidden);
|
|
||||||
|
|
||||||
static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
|
static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
|
||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
switch (TheTriple.getOS()) {
|
switch (TheTriple.getOS()) {
|
||||||
|
@ -177,7 +172,7 @@ bool X86TargetMachine::addPostRegAlloc(PassManagerBase &PM,
|
||||||
|
|
||||||
bool X86TargetMachine::addPreEmitPass(PassManagerBase &PM,
|
bool X86TargetMachine::addPreEmitPass(PassManagerBase &PM,
|
||||||
CodeGenOpt::Level OptLevel) {
|
CodeGenOpt::Level OptLevel) {
|
||||||
if (SSEDomainFix && OptLevel != CodeGenOpt::None && Subtarget.hasSSE2()) {
|
if (OptLevel != CodeGenOpt::None && Subtarget.hasSSE2()) {
|
||||||
PM.add(createSSEDomainFixPass());
|
PM.add(createSSEDomainFixPass());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue