Only run DeadInst elimination early, because it is quick and painless and
pipelines well
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1549 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index ae0320c..60da2be 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -64,7 +64,7 @@
// 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