diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:52:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-06 16:52:15 +0000 |
commit | eadd32cda20d72d542f3d2a4c01267fe646f0e79 (patch) | |
tree | 935bd7f4988b9ab15e28ee70d29dd6d8f9bcf7df /tools/gccas/gccas.cpp | |
parent | b35dde1df46e9a8d162c04ba8115eaefdcd17c76 (diff) |
Instruction Combination can create a ton of trivially dead instructions. Remove
them with an DIE pass before more expensive optimizations are run.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r-- | tools/gccas/gccas.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index a292a71afe..5d14e3c4a0 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -83,6 +83,7 @@ int main(int argc, char **argv) { Passes.add(createRaisePointerReferencesPass()); // Eliminate casts 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(createDeadCodeEliminationPass()); // Remove Dead code/vars |