diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-25 19:30:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-25 19:30:19 +0000 |
commit | 64c9b223bd76e5038b689f464af679732050fb32 (patch) | |
tree | d6f835b5fd37d6f2454d3ac15c1559cb00902d93 | |
parent | 9a5bd7fca7b0453a4f409ab6c0c8e3069faedee3 (diff) | |
download | bcm5719-llvm-64c9b223bd76e5038b689f464af679732050fb32.tar.gz bcm5719-llvm-64c9b223bd76e5038b689f464af679732050fb32.zip |
Fix failures in 099.go due to the cfgsimplify pass creating switch instructions
where there did not used to be any before
llvm-svn: 11829
-rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index 83a390edaf8..4886a114811 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/lib/Target/X86/X86TargetMachine.cpp @@ -59,9 +59,6 @@ X86TargetMachine::X86TargetMachine(const Module &M, IntrinsicLowering *IL) // does to emit statically compiled machine code. bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) { - // FIXME: Implement the switch instruction in the instruction selector! - PM.add(createLowerSwitchPass()); - // FIXME: Implement the invoke/unwind instructions! PM.add(createLowerInvokePass()); @@ -69,6 +66,9 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, // unreachable basic blocks. PM.add(createCFGSimplificationPass()); + // FIXME: Implement the switch instruction in the instruction selector! + PM.add(createLowerSwitchPass()); + if (NoPatternISel) PM.add(createX86SimpleInstructionSelector(*this)); else @@ -115,8 +115,6 @@ bool X86TargetMachine::addPassesToEmitAssembly(PassManager &PM, /// not supported for this target. /// void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { - // FIXME: Implement the switch instruction in the instruction selector! - PM.add(createLowerSwitchPass()); // FIXME: Implement the invoke/unwind instructions! PM.add(createLowerInvokePass()); @@ -125,6 +123,9 @@ void X86JITInfo::addPassesToJITCompile(FunctionPassManager &PM) { // unreachable basic blocks. PM.add(createCFGSimplificationPass()); + // FIXME: Implement the switch instruction in the instruction selector! + PM.add(createLowerSwitchPass()); + if (NoPatternISel) PM.add(createX86SimpleInstructionSelector(TM)); else |