// 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)
// 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