summaryrefslogtreecommitdiff
path: root/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-14 16:48:30 +0000
committerChris Lattner <sabre@nondot.org>2001-12-14 16:48:30 +0000
commitd584dcc6efe05e959b6808a0ebbd48c9f5c17ede (patch)
tree59b55bd299161cf4ade208c116ea35066d368b55 /tools/gccas
parentf493a569c3d79cbe148fd9fa69a139cdff066116 (diff)
downloadllvm-d584dcc6efe05e959b6808a0ebbd48c9f5c17ede.tar.gz
llvm-d584dcc6efe05e959b6808a0ebbd48c9f5c17ede.tar.bz2
llvm-d584dcc6efe05e959b6808a0ebbd48c9f5c17ede.tar.xz
Add more passes to run after raising
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r--tools/gccas/gccas.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index a1eeedb26c..b9e3a6207d 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -14,6 +14,7 @@
#include "llvm/Optimizations/DCE.h"
#include "llvm/Transforms/ConstantMerge.h"
#include "llvm/Transforms/Scalar/IndVarSimplify.h"
+#include "llvm/Transforms/Scalar/InstructionCombining.h"
#include "llvm/Bytecode/Writer.h"
#include "Support/CommandLine.h"
#include <memory>
@@ -66,8 +67,10 @@ int main(int argc, char **argv) {
Passes.push_back(new opt::DeadCodeElimination()); // Remove Dead code/vars
Passes.push_back(new CleanupGCCOutput()); // Fix gccisms
Passes.push_back(new InductionVariableSimplify()); // Simplify indvars
- Passes.push_back(new RaisePointerReferences()); // Fix general low level code
- Passes.push_back(new ConstantMerge()); // Merge dup global constants
+ Passes.push_back(new RaisePointerReferences()); // Eliminate casts
+ Passes.push_back(new ConstantMerge()); // Merge dup global consts
+ Passes.push_back(new InstructionCombining()); // Combine silly seq's
+ Passes.push_back(new opt::DeadCodeElimination()); // Remove Dead code/vars
// Run our queue of passes all at once now, efficiently. This form of
// runAllPasses frees the Pass objects after runAllPasses completes.