[llvm] r207571 - Add slp vectorization to LTO passes
Yi Jiang
yjiang at apple.com
Tue Apr 29 12:35:39 PDT 2014
Author: yjiang
Date: Tue Apr 29 14:35:39 2014
New Revision: 207571
URL: http://llvm.org/viewvc/llvm-project?rev=207571&view=rev
Log:
Add slp vectorization to LTO passes
Modified:
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=207571&r1=207570&r2=207571&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Tue Apr 29 14:35:39 2014
@@ -341,6 +341,9 @@ void PassManagerBuilder::populateLTOPass
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());
More information about the llvm-commits
mailing list