mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-02 22:32:08 +00:00
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:
parent
0417feba29
commit
96690a81d4
@ -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…
x
Reference in New Issue
Block a user