Skip to content

Commit

Permalink
Reapply: Add slp vectorization to LTO passes. The bug it exposed has …
Browse files Browse the repository at this point in the history
…been fixed by r207983. <radar://16641956>

llvm-svn: 208013
  • Loading branch information
Yi Jiang committed May 5, 2014
1 parent 80f12c2 commit 79eb0aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
Original file line number Diff line number Diff line change
@@ -341,6 +341,9 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
PM.add(createLoopDeletionPass());
PM.add(createLoopVectorizePass(true, true));

// More scalar chains could be vectorized due to more alias information
PM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.

// Cleanup and simplify the code after the scalar optimizations.
PM.add(createInstructionCombiningPass());

0 comments on commit 79eb0aa

Please sign in to comment.