Skip to content

Commit 79eb0aa

Browse files
author
Yi Jiang
committedMay 5, 2014
Reapply: Add slp vectorization to LTO passes. The bug it exposed has been fixed by r207983. <radar://16641956>
llvm-svn: 208013
1 parent 80f12c2 commit 79eb0aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
341341
PM.add(createLoopDeletionPass());
342342
PM.add(createLoopVectorizePass(true, true));
343343

344+
// More scalar chains could be vectorized due to more alias information
345+
PM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
346+
344347
// Cleanup and simplify the code after the scalar optimizations.
345348
PM.add(createInstructionCombiningPass());
346349

0 commit comments

Comments
 (0)