[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 2 00:48:06 PDT 2004


Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.58 -> 1.59

---
Log message:

Remove dead blocks


---
Diffs of the changes:  (+6 -0)

Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.58 llvm/lib/Target/X86/X86TargetMachine.cpp:1.59
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.58	Tue Jun 29 02:17:12 2004
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Fri Jul  2 00:46:41 2004
@@ -68,6 +68,9 @@
   // FIXME: Implement the switch instruction in the instruction selector!
   PM.add(createLowerSwitchPass());
 
+  // Make sure that no unreachable blocks are instruction selected.
+  PM.add(createUnreachableBlockEliminationPass());
+
   if (NoPatternISel && NoSimpleISel)
     PM.add(createX86SimpleInstructionSelector(*this));
   else if (NoPatternISel)
@@ -125,6 +128,9 @@
   // FIXME: Implement the switch instruction in the instruction selector!
   PM.add(createLowerSwitchPass());
 
+  // Make sure that no unreachable blocks are instruction selected.
+  PM.add(createUnreachableBlockEliminationPass());
+
   if (NoPatternISel)
     PM.add(createX86SimpleInstructionSelector(TM));
   else





More information about the llvm-commits mailing list