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)
llvm-svn: 187628

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

index 5363c91..6355204 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) {