forked from OSchip/llvm-project
GCSE is faster than SCCP, and it makes SCCP's job easier, so run it first.
llvm-svn: 2503
This commit is contained in:
parent
e548507e8c
commit
cfa675c142
|
@ -84,8 +84,8 @@ int main(int argc, char **argv) {
|
|||
Passes.add(createPromoteMemoryToRegister()); // Promote alloca's to regs
|
||||
Passes.add(createInstructionCombiningPass()); // Combine silly seq's
|
||||
Passes.add(createDeadInstEliminationPass()); // Kill InstCombine remnants
|
||||
Passes.add(createSCCPPass()); // Constant prop with SCCP
|
||||
Passes.add(createGCSEPass()); // Remove common subexprs
|
||||
Passes.add(createSCCPPass()); // Constant prop with SCCP
|
||||
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
|
||||
}
|
||||
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...
|
||||
|
|
Loading…
Reference in New Issue