1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

GCSE is faster than SCCP, and it makes SCCP's job easier, so run it first.

llvm-svn: 2503
This commit is contained in:
Chris Lattner 2002-05-06 18:54:12 +00:00
parent 66ff017174
commit ee7b1b29a9

View File

@ -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...