Reapply: Add slp vectorization to LTO passes. The bug it exposed has been fixed by r207983. <radar://16641956>

llvm-svn: 208013
This commit is contained in:
Yi Jiang 2014-05-05 23:14:46 +00:00
parent 80f12c2349
commit 79eb0aa8cb
1 changed files with 3 additions and 0 deletions

View File

@ -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());