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