Move the optlevel check to the frontend.
authorNadav Rotem <nrotem@apple.com>
Thu, 1 Aug 2013 22:41:58 +0000 (22:41 +0000)
committerNadav Rotem <nrotem@apple.com>
Thu, 1 Aug 2013 22:41:58 +0000 (22:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187628 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/PassManagerBuilder.cpp

index 5363c91cc84e0163f803e2b1dea534ceac3ebbbd..6355204a03e240cff9559b7f97f9e807eba3945e 100644 (file)
@@ -217,7 +217,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
   addExtensionsToPM(EP_ScalarOptimizerLate, MPM);
 
   if (!LateVectorize) {
-    if (SLPVectorize && OptLevel > 2)
+    if (SLPVectorize)
       MPM.add(createSLPVectorizerPass());   // Vectorize parallel scalar chains.
 
     if (BBVectorize) {