diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 01:00:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 01:00:15 +0000 |
commit | 598d21c7e58cb928705c672c1ce6b3f19d0c23f8 (patch) | |
tree | 8ec77861867a892972bbca4df3e072330b7fcde2 /tools/gccas/gccas.cpp | |
parent | e5fb83ebb84b9562c227c100c064e36d2192d9dc (diff) | |
download | external_llvm-598d21c7e58cb928705c672c1ce6b3f19d0c23f8.zip external_llvm-598d21c7e58cb928705c672c1ce6b3f19d0c23f8.tar.gz external_llvm-598d21c7e58cb928705c672c1ce6b3f19d0c23f8.tar.bz2 |
Run GCSE as part of gccas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r-- | tools/gccas/gccas.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 02d7cfe..613f51c 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -15,6 +15,7 @@ #include "llvm/Transforms/ConstantMerge.h" #include "llvm/Transforms/ChangeAllocations.h" #include "llvm/Transforms/Scalar/DCE.h" +#include "llvm/Transforms/Scalar/GCSE.h" #include "llvm/Transforms/Scalar/IndVarSimplify.h" #include "llvm/Transforms/Scalar/InstructionCombining.h" #include "llvm/Transforms/Scalar/PromoteMemoryToRegister.h" @@ -83,6 +84,7 @@ int main(int argc, char **argv) { Passes.add(createConstantMergePass()); // Merge dup global consts Passes.add(createInstructionCombiningPass()); // Combine silly seq's Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars + Passes.add(createGCSEPass()); // Remove common subexprs } Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file... |