mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
run mem2reg after the second jump threading pass in llvm-ld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
552e22f44a
commit
6c31e87d7c
@ -148,7 +148,8 @@ void Optimize(Module* M) {
|
||||
addPass(Passes, createInstructionCombiningPass());
|
||||
|
||||
addPass(Passes, createJumpThreadingPass()); // Thread jumps.
|
||||
|
||||
addPass(Passes, createPromoteMemoryToRegisterPass()); // Cleanup jumpthread.
|
||||
|
||||
// Delete basic blocks, which optimization passes may have killed...
|
||||
addPass(Passes, createCFGSimplificationPass());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user