[llvm-commits] [llvm] r52728 - /llvm/trunk/tools/llvm-ld/Optimize.cpp
Chris Lattner
sabre at nondot.org
Wed Jun 25 09:51:57 PDT 2008
Author: lattner
Date: Wed Jun 25 11:51:55 2008
New Revision: 52728
URL: http://llvm.org/viewvc/llvm-project?rev=52728&view=rev
Log:
run mem2reg after the second jump threading pass in llvm-ld.
Modified:
llvm/trunk/tools/llvm-ld/Optimize.cpp
Modified: llvm/trunk/tools/llvm-ld/Optimize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/Optimize.cpp?rev=52728&r1=52727&r2=52728&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ld/Optimize.cpp (original)
+++ llvm/trunk/tools/llvm-ld/Optimize.cpp Wed Jun 25 11:51:55 2008
@@ -148,7 +148,8 @@
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());
More information about the llvm-commits
mailing list