The code generator should work with unreachable blocks. If not, then this
authorChris Lattner <sabre@nondot.org>
Tue, 29 Jun 2004 07:20:16 +0000 (07:20 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Jun 2004 07:20:16 +0000 (07:20 +0000)
is a bug that should be fixed in the code generator, not papered over with
the simplifycfg pass.  Eliminating this makes bugpoint much more useful

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14477 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCTargetMachine.cpp

index 10146c5a56523df1e80f9609763791fe8ba5672b..f6dd82228bef91900c05cd657520b0f4267083e1 100644 (file)
@@ -49,10 +49,6 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
   // FIXME: Implement the invoke/unwind instructions!
   PM.add(createLowerInvokePass());
 
-  // 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());
 
@@ -82,10 +78,6 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
   // FIXME: Implement the invoke/unwind instructions!
   PM.add(createLowerInvokePass());
 
-  // 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());