Only run DeadInst elimination early, because it is quick and painless and
authorChris Lattner <sabre@nondot.org>
Tue, 22 Jan 2002 21:06:44 +0000 (21:06 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Jan 2002 21:06:44 +0000 (21:06 +0000)
pipelines well

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1549 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index ae0320c27163554b45def4b371af92ade29d3b8a..60da2be14c12387cdfc245aa5566c052db3911b1 100644 (file)
@@ -64,7 +64,7 @@ int main(int argc, char **argv) {
   // a little bit.  Do this now.
   //
   PassManager Passes;
-  Passes.add(new DeadCodeElimination());       // Remove Dead code/vars
+  Passes.add(new DeadInstElimination());       // Remove Dead code/vars
   Passes.add(new RaiseAllocations());          // call %malloc -> malloc inst
   Passes.add(new CleanupGCCOutput());          // Fix gccisms
   Passes.add(new InductionVariableSimplify()); // Simplify indvars