summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-25 16:51:55 +0000
committerChris Lattner <sabre@nondot.org>2008-06-25 16:51:55 +0000
commit0e06949726aba1a7e598df069985e04e8eb85ffc (patch)
treeb8a401e511923d97f414b902e668efa99aad2922 /llvm/tools/llvm-ld
parent651e66d14c4982933b72686dbe742ca1ad93466e (diff)
downloadbcm5719-llvm-0e06949726aba1a7e598df069985e04e8eb85ffc.tar.gz
bcm5719-llvm-0e06949726aba1a7e598df069985e04e8eb85ffc.zip
run mem2reg after the second jump threading pass in llvm-ld.
llvm-svn: 52728
Diffstat (limited to 'llvm/tools/llvm-ld')
-rw-r--r--llvm/tools/llvm-ld/Optimize.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/Optimize.cpp b/llvm/tools/llvm-ld/Optimize.cpp
index 0dc38570171..a3f1986b243 100644
--- a/llvm/tools/llvm-ld/Optimize.cpp
+++ b/llvm/tools/llvm-ld/Optimize.cpp
@@ -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());
OpenPOWER on IntegriCloud