diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:48:30 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:48:30 +0000 |
| commit | 05377bbe3faec11b8edb1d08ae1f20e9bbadb9a3 (patch) | |
| tree | b8dd49bdbe5939ad359a50ac6d4f5bc9df482dce /llvm | |
| parent | eb81d53e40cef9fecfa35beb858a65e33cb1d3bb (diff) | |
| download | bcm5719-llvm-05377bbe3faec11b8edb1d08ae1f20e9bbadb9a3.tar.gz bcm5719-llvm-05377bbe3faec11b8edb1d08ae1f20e9bbadb9a3.zip | |
Add more passes to run after raising
llvm-svn: 1476
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/gccas/gccas.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index a1eeedb26c5..b9e3a6207db 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/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. |

