commit | a4cbd78af84b76f92202f2f2b1a3c49ff1f85798 | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nrotem@apple.com> | Thu Aug 01 18:28:15 2013 +0000 |
committer | Nadav Rotem <nrotem@apple.com> | Thu Aug 01 18:28:15 2013 +0000 |
tree | a5bc75442065c7f5903ab34714ab49e4742e9536 | |
parent | df263de386fe4593a526e329e8c538ad54ce487d [diff] [blame] |
Only enable SLP-vectorization on O3 builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187595 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 6355204..5363c91 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -217,7 +217,7 @@ addExtensionsToPM(EP_ScalarOptimizerLate, MPM); if (!LateVectorize) { - if (SLPVectorize) + if (SLPVectorize && OptLevel > 2) MPM.add(createSLPVectorizerPass()); // Vectorize parallel scalar chains. if (BBVectorize) {