summaryrefslogtreecommitdiffstats
path: root/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-23 20:40:42 +0000
committerChris Lattner <sabre@nondot.org>2003-04-23 20:40:42 +0000
commita4dd4e2de8656ee9e51e6249b95a02ab5fe9c81a (patch)
tree6fcdbf025830c15fea3b1a4dfc5ba9a306573684 /tools/gccas
parent3c053a0a98e19f5ac8905011ad4c8238b08d6aea (diff)
downloadexternal_llvm-a4dd4e2de8656ee9e51e6249b95a02ab5fe9c81a.zip
external_llvm-a4dd4e2de8656ee9e51e6249b95a02ab5fe9c81a.tar.gz
external_llvm-a4dd4e2de8656ee9e51e6249b95a02ab5fe9c81a.tar.bz2
The new CFrontend generates LOTs of basic blocks that just fall through and do
other funky stuff. Clean it up early. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r--tools/gccas/gccas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index b5a980b..2172782 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -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