Add the ADCE pass to gccas finally!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2719 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index d4c6309..c2f5a18 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -88,6 +88,7 @@
// opened up by them.
Passes.add(createInstructionCombiningPass());
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars
+ Passes.add(createAggressiveDCEPass()); // SSA based 'Agressive DCE'
Passes.add(createCFGSimplificationPass()); // Merge & remove BBs
}
Passes.add(new WriteBytecodePass(&Out)); // Write bytecode to file...
@@ -96,4 +97,3 @@
Passes.run(M.get());
return 0;
}
-