mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Revert the last patch. We really do need SimplyCFG.
llvm-svn: 18787
This commit is contained in:
parent
beeab3a124
commit
17ce5e3519
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user