[llvm] r187595 - Only enable SLP-vectorization on O3 builds.
Nadav Rotem
nrotem at apple.com
Thu Aug 1 11:28:15 PDT 2013
Author: nadav
Date: Thu Aug 1 13:28:15 2013
New Revision: 187595
URL: http://llvm.org/viewvc/llvm-project?rev=187595&view=rev
Log:
Only enable SLP-vectorization on O3 builds.
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=187595&r1=187594&r2=187595&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Thu Aug 1 13:28:15 2013
@@ -217,7 +217,7 @@ void PassManagerBuilder::populateModuleP
addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
if (!LateVectorize) {
- if (SLPVectorize)
+ if (SLPVectorize && OptLevel > 2)
MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains.
if (BBVectorize) {
More information about the llvm-commits
mailing list