run mem2reg after the second jump threading pass in llvm-ld.

llvm-svn: 52728
This commit is contained in:
Chris Lattner 2008-06-25 16:51:55 +00:00
parent 0e8a5a0004
commit 20daa88e13

View File

@ -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());