From: Yi Jiang Date: Mon, 5 May 2014 23:14:46 +0000 (+0000) Subject: Reapply: Add slp vectorization to LTO passes. The bug it exposed has been fixed by... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e3b906eb39e808b19755a6ea87a160343bd2abbd;p=oota-llvm.git Reapply: Add slp vectorization to LTO passes. The bug it exposed has been fixed by r207983. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208013 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 01ab31deca4..10c51ab553a 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -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());