mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
Run GCSE as part of gccas.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5fb83ebb8
commit
598d21c7e5
@ -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...
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user