forked from OSchip/llvm-project
Move the optlevel check to the frontend.
llvm-svn: 187628
This commit is contained in:
parent
8234d40843
commit
e4e6e9ed47
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue