run the jump threading pass in llvm-ld also

llvm-svn: 50027
This commit is contained in:
Chris Lattner 2008-04-21 04:28:40 +00:00
parent b15e1f963d
commit ba994f7cdf
1 changed files with 3 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void Optimize(Module* M) {
// The IPO passes may leave cruft around. Clean up after them.
addPass(Passes, createInstructionCombiningPass());
addPass(Passes, createJumpThreadingPass()); // Thread jumps.
addPass(Passes, createScalarReplAggregatesPass()); // Break up allocas
// Run a few AA driven optimizations here and now, to cleanup the code.
@ -176,6 +176,8 @@ void Optimize(Module* M) {
// Cleanup and simplify the code after the scalar optimizations.
addPass(Passes, createInstructionCombiningPass());
addPass(Passes, createJumpThreadingPass()); // Thread jumps.
// Delete basic blocks, which optimization passes may have killed...
addPass(Passes, createCFGSimplificationPass());