I have moved this logic into clang and opt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188281
91177308-0d34-0410-b5e6-
96231b3b80d8
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
- if (!LateVectorize && LoopVectorize && OptLevel > 1 && SizeLevel < 2)
+ if (!LateVectorize && LoopVectorize)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)
Builder.populateFunctionPassManager(FPM);
Builder.populateModulePassManager(MPM);
Builder.populateFunctionPassManager(FPM);
Builder.populateModulePassManager(MPM);
+
+ Builder.LoopVectorize = OptLevel > 1 && SizeLevel < 2;
}
static void AddStandardCompilePasses(PassManagerBase &PM) {
}
static void AddStandardCompilePasses(PassManagerBase &PM) {