1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Revert the last patch. We really do need SimplyCFG.

llvm-svn: 18787
This commit is contained in:
Reid Spencer 2004-12-11 03:03:54 +00:00
parent beeab3a124
commit 17ce5e3519

View File

@ -163,6 +163,9 @@ void Optimize(Module* M) {
// Cleanup and simplify the code after the scalar optimizations.
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...
addPass(Passes, createGlobalDCEPass());
}