1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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 969d1df7ba
commit a9bbfdf699

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.