git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102941
91177308-0d34-0410-b5e6-
96231b3b80d8
#include "llvm/Support/FormattedStream.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetRegistry.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetRegistry.h"
+#include "llvm/Support/CommandLine.h"
+
+static cl::opt<bool> DisableSSEDomain("disable-sse-domain",
+ cl::init(false), cl::Hidden,
+ cl::desc("Disable SSE Domain Fixing"));
+
static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
Triple TheTriple(TT);
switch (TheTriple.getOS()) {
static MCAsmInfo *createMCAsmInfo(const Target &T, StringRef TT) {
Triple TheTriple(TT);
switch (TheTriple.getOS()) {
bool X86TargetMachine::addPreEmitPass(PassManagerBase &PM,
CodeGenOpt::Level OptLevel) {
bool X86TargetMachine::addPreEmitPass(PassManagerBase &PM,
CodeGenOpt::Level OptLevel) {
- if (OptLevel != CodeGenOpt::None && Subtarget.hasSSE2()) {
+ if (OptLevel != CodeGenOpt::None && Subtarget.hasSSE2() &&
+ !DisableSSEDomain) {
PM.add(createSSEDomainFixPass());
return true;
}
PM.add(createSSEDomainFixPass());
return true;
}