run a late dce pass to clean up extra cruft.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-05 16:50:20 +00:00
parent 56f54d431b
commit c8c5752b2f

View File

@ -201,6 +201,7 @@ void Optimize(Module* M) {
if (!DisableOptimizations) {
addPass(Passes, createInstructionCombiningPass());
addPass(Passes, createCFGSimplificationPass());
addPass(Passes, createDeadCodeEliminationPass());
addPass(Passes, createGlobalDCEPass());
}