Move the optlevel check to the frontend.

llvm-svn: 187628
This commit is contained in:
Nadav Rotem 2013-08-01 22:41:58 +00:00
parent 8234d40843
commit e4e6e9ed47
1 changed files with 1 additions and 1 deletions

View 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) {