aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-21 20:05:08 +0000
committerChris Lattner <sabre@nondot.org>2002-05-21 20:05:08 +0000
commite3a20e733e87928c5ca06468024a428f93253ec7 (patch)
tree048fa7ebd18880d482cd548f9301b5e38d33884e /tools/gccas/gccas.cpp
parent76ae3445f81164aaff9f95123426109c119f27c0 (diff)
Simplify CFG after code generation is done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-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 1a0067e296..d4c6309262 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -88,6 +88,7 @@ int main(int argc, char **argv) {
// opened up by them.
Passes.add(createInstructionCombiningPass());
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
+ Passes.add(createCFGSimplificationPass()); // Merge & remove BBs
}
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...