there is no need to run mem2reg after jump threading at LTO time now.
authorChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 04:17:33 +0000 (04:17 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 11 Oct 2009 04:17:33 +0000 (04:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83753 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/StandardPasses.h

index 8c4f90bf33df08b8bd32fc464f3838a6f22b2be2..c71e6b94fa279644d2c7eba9c7f63795fbbbb658 100644 (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.