summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-04-08 19:46:55 +0000
committerNate Begeman <natebegeman@mac.com>2006-04-08 19:46:55 +0000
commit3f9c17906f6ee6ccfd67a982dc9dbbb8b092c5fe (patch)
tree6f91fc05e981741f96711833973da5ccc376c82f /llvm/lib/Target/X86/X86TargetMachine.cpp
parentd9e80f451645656d7fb3267c9669d136bf5dd519 (diff)
downloadbcm5719-llvm-3f9c17906f6ee6ccfd67a982dc9dbbb8b092c5fe.tar.gz
bcm5719-llvm-3f9c17906f6ee6ccfd67a982dc9dbbb8b092c5fe.zip
Disable switch lowering for targets based on the selection dag isel,
letting the code generator handle them directly. llvm-svn: 27539
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 44877d9b4d1..b9dea3bcf30 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -36,8 +36,6 @@ namespace {
cl::opt<bool> DisableOutput("disable-x86-llc-output", cl::Hidden,
cl::desc("Disable the X86 asm printer, for use "
"when profiling the code generator."));
- cl::opt<bool> DisableLowerSwitch("disable-lower-switch", cl::Hidden,
- cl::desc("Disable the LowerSwitch pass"));
// Register the target.
RegisterTarget<X86TargetMachine> X("x86", " IA-32 (Pentium and above)");
}
@@ -100,10 +98,6 @@ bool X86TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out,
// FIXME: Implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
- // FIXME: Implement the switch instruction in the instruction selector!
- if (!DisableLowerSwitch)
- PM.add(createLowerSwitchPass());
-
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
@@ -169,10 +163,6 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
// FIXME: Implement the invoke/unwind instructions!
PM.add(createLowerInvokePass());
- // FIXME: Implement the switch instruction in the instruction selector!
- if (!DisableLowerSwitch)
- PM.add(createLowerSwitchPass());
-
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
OpenPOWER on IntegriCloud