diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 03:03:54 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-11 03:03:54 +0000 |
commit | d58e09a2751a7b8936f1dbd413d5404c708d9db4 (patch) | |
tree | a44508b69b4f68c36a2949b5097045c00ddddf5f /llvm/tools/llvm-ld/Optimize.cpp | |
parent | 99e129564595bd084687fb72673a6954a4ca1818 (diff) | |
download | bcm5719-llvm-d58e09a2751a7b8936f1dbd413d5404c708d9db4.tar.gz bcm5719-llvm-d58e09a2751a7b8936f1dbd413d5404c708d9db4.zip |
Revert the last patch. We really do need SimplyCFG.
llvm-svn: 18787
Diffstat (limited to 'llvm/tools/llvm-ld/Optimize.cpp')
-rw-r--r-- | llvm/tools/llvm-ld/Optimize.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-ld/Optimize.cpp b/llvm/tools/llvm-ld/Optimize.cpp index c676809f771..5dc9424be90 100644 --- a/llvm/tools/llvm-ld/Optimize.cpp +++ b/llvm/tools/llvm-ld/Optimize.cpp @@ -163,6 +163,9 @@ void Optimize(Module* M) { // Cleanup and simplify the code after the scalar optimizations. addPass(Passes, createInstructionCombiningPass()); + // Delete basic blocks, which optimization passes may have killed... + addPass(Passes, createCFGSimplificationPass()); + // Now that we have optimized the program, discard unreachable functions... addPass(Passes, createGlobalDCEPass()); } |