[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 25 13:31:02 PST 2004
Changes in directory llvm/lib/Target/X86:
X86TargetMachine.cpp updated: 1.48 -> 1.49
---
Log message:
Fix failures in 099.go due to the cfgsimplify pass creating switch instructions
where there did not used to be any before
---
Diffs of the changes: (+6 -5)
Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.48 llvm/lib/Target/X86/X86TargetMachine.cpp:1.49
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.48 Sat Feb 14 18:03:15 2004
+++ llvm/lib/Target/X86/X86TargetMachine.cpp Wed Feb 25 13:30:19 2004
@@ -59,9 +59,6 @@
// 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 @@
// 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 @@
/// 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());
@@ -124,6 +122,9 @@
// FIXME: The code generator does not properly handle functions with
// unreachable basic blocks.
PM.add(createCFGSimplificationPass());
+
+ // FIXME: Implement the switch instruction in the instruction selector!
+ PM.add(createLowerSwitchPass());
if (NoPatternISel)
PM.add(createX86SimpleInstructionSelector(TM));
More information about the llvm-commits
mailing list