From: Nadav Rotem Date: Thu, 1 Aug 2013 22:41:58 +0000 (+0000) Subject: Move the optlevel check to the frontend. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=72bc423e7f88808f562798504f8405eee625f272;p=oota-llvm.git Move the optlevel check to the frontend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187628 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/PassManagerBuilder.cpp b/lib/Transforms/IPO/PassManagerBuilder.cpp index 5363c91cc84..6355204a03e 100644 --- a/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -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) {