there is no need to run mem2reg after jump threading at LTO time now.

llvm-svn: 83753
This commit is contained in:
Chris Lattner 2009-10-11 04:17:33 +00:00
parent bb094e12f2
commit 09677258e5
1 changed files with 1 additions and 3 deletions

View File

@ -230,10 +230,8 @@ namespace llvm {
addOnePass(PM, createInstructionCombiningPass(), VerifyEach);
addOnePass(PM, createJumpThreadingPass(), VerifyEach);
// Cleanup jump threading.
addOnePass(PM, createPromoteMemoryToRegisterPass(), VerifyEach);
// Delete basic blocks, which optimization passes may have killed...
// Delete basic blocks, which optimization passes may have killed.
addOnePass(PM, createCFGSimplificationPass(), VerifyEach);
// Now that we have optimized the program, discard unreachable functions.