The new CFrontend generates LOTs of basic blocks that just fall through and do
authorChris Lattner <sabre@nondot.org>
Wed, 23 Apr 2003 20:40:42 +0000 (20:40 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 23 Apr 2003 20:40:42 +0000 (20:40 +0000)
other funky stuff.  Clean it up early.

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

tools/gccas/gccas.cpp

index b5a980b2ed425a9af3382ecbcb0d23ba27665bac..2172782ce9cc41b5710b3df581c748e397c41657 100644 (file)
@@ -70,6 +70,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
   addPass(PM, createDeadTypeEliminationPass());  // Eliminate dead types
   addPass(PM, createConstantMergePass());        // Merge dup global constants
   addPass(PM, createVerifierPass());             // Verify that input is correct
+  addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
   addPass(PM, createDeadInstEliminationPass());  // Remove Dead code/vars
   addPass(PM, createRaiseAllocationsPass());     // call %malloc -> malloc inst
   addPass(PM, createIndVarSimplifyPass());       // Simplify indvars