diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-25 16:51:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-25 16:51:55 +0000 |
commit | 6c31e87d7cdbbc997659ef6c732b6bca96751a01 (patch) | |
tree | 87c541736a37c7fd08932f14897bd2405fcd0028 /tools/llvm-ld | |
parent | 552e22f44abbd82e4b3e2642d6027ed55419137c (diff) | |
download | external_llvm-6c31e87d7cdbbc997659ef6c732b6bca96751a01.zip external_llvm-6c31e87d7cdbbc997659ef6c732b6bca96751a01.tar.gz external_llvm-6c31e87d7cdbbc997659ef6c732b6bca96751a01.tar.bz2 |
run mem2reg after the second jump threading pass in llvm-ld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r-- | tools/llvm-ld/Optimize.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp index 0dc3857..a3f1986 100644 --- a/tools/llvm-ld/Optimize.cpp +++ b/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()); |