Revert the last patch. We really do need SimplyCFG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-12-11 03:03:54 +00:00
parent 0417feba29
commit 96690a81d4

View File

@ -163,6 +163,9 @@ void Optimize(Module* M) {
// Cleanup and simplify the code after the scalar optimizations. // Cleanup and simplify the code after the scalar optimizations.
addPass(Passes, createInstructionCombiningPass()); addPass(Passes, createInstructionCombiningPass());
// Delete basic blocks, which optimization passes may have killed...
addPass(Passes, createCFGSimplificationPass());
// Now that we have optimized the program, discard unreachable functions... // Now that we have optimized the program, discard unreachable functions...
addPass(Passes, createGlobalDCEPass()); addPass(Passes, createGlobalDCEPass());
} }