Add slp vectorization to LTO passes

llvm-svn: 207571
This commit is contained in:
Yi Jiang 2014-04-29 19:35:39 +00:00
parent fe6b880de5
commit 4e234aa790
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());