[llvm-commits] [llvm] r102941 - /llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Eric Christopher
echristo at apple.com
Mon May 3 12:54:02 PDT 2010
Author: echristo
Date: Mon May 3 14:54:02 2010
New Revision: 102941
URL: http://llvm.org/viewvc/llvm-project?rev=102941&view=rev
Log:
Add an option, defaulting to off, to disable the sse domain crossing opts.
Modified:
llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetMachine.cpp?rev=102941&r1=102940&r2=102941&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetMachine.cpp Mon May 3 14:54:02 2010
@@ -20,8 +20,14 @@
#include "llvm/Support/FormattedStream.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetRegistry.h"
+#include "llvm/Support/CommandLine.h"
+
using namespace llvm;
+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()) {
@@ -172,7 +178,8 @@
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;
}
More information about the llvm-commits
mailing list