mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
run mem2reg after the second jump threading pass in llvm-ld.
llvm-svn: 52728
This commit is contained in:
parent
0e8a5a0004
commit
20daa88e13
@ -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…
x
Reference in New Issue
Block a user