The new CFrontend generates LOTs of basic blocks that just fall through and do

other funky stuff.  Clean it up early.

llvm-svn: 5889
This commit is contained in:
Chris Lattner 2003-04-23 20:40:42 +00:00
parent d44e355c9c
commit 14f89ddf52

View 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