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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208013 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yi Jiang 2014-05-05 23:14:46 +00:00
parent bb95032999
commit e3b906eb39

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