summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-06 16:52:15 +0000
committerChris Lattner <sabre@nondot.org>2002-05-06 16:52:15 +0000
commiteadd32cda20d72d542f3d2a4c01267fe646f0e79 (patch)
tree935bd7f4988b9ab15e28ee70d29dd6d8f9bcf7df /tools
parentb35dde1df46e9a8d162c04ba8115eaefdcd17c76 (diff)
downloadllvm-eadd32cda20d72d542f3d2a4c01267fe646f0e79.tar.gz
llvm-eadd32cda20d72d542f3d2a4c01267fe646f0e79.tar.bz2
llvm-eadd32cda20d72d542f3d2a4c01267fe646f0e79.tar.xz
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')
-rw-r--r--tools/gccas/gccas.cpp1
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