mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-29 15:04:57 +00: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:
parent
66ff017174
commit
ee7b1b29a9
@ -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
Block a user