diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-05-14 16:23:14 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-05-14 16:23:14 +0000 |
| commit | c914944a61f6f2c918e87f34c759ae04ed729224 (patch) | |
| tree | 0a5a2a99206908861fcca166523259e17a08e16b /llvm | |
| parent | 408dbdb9adaec52d5cd7b889a9a4cb9e3e21cc79 (diff) | |
| download | bcm5719-llvm-c914944a61f6f2c918e87f34c759ae04ed729224.tar.gz bcm5719-llvm-c914944a61f6f2c918e87f34c759ae04ed729224.zip | |
Run another local value numbering phase after redundancy elimination
llvm-svn: 2625
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/tools/gccas/gccas.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index c2f7a8c542b..1a0067e296e 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/tools/gccas/gccas.cpp @@ -83,6 +83,10 @@ int main(int argc, char **argv) { Passes.add(createLICMPass()); // Hoist loop invariants Passes.add(createGCSEPass()); // Remove common subexprs Passes.add(createSCCPPass()); // Constant prop with SCCP + + // Run instcombine after redundancy elimination to exploit opportunities + // opened up by them. + Passes.add(createInstructionCombiningPass()); Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars } Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file... |

