Remove logic that decides whether to vectorize or not depending on O-levels

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
This commit is contained in:
Arnold Schwaighofer 2013-08-13 15:51:25 +00:00
parent 4c857225ec
commit b6171c5296
2 changed files with 3 additions and 1 deletions

View File

@ -195,7 +195,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
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)

View File

@ -451,6 +451,8 @@ static void AddOptimizationPasses(PassManagerBase &MPM,FunctionPassManager &FPM,
Builder.populateFunctionPassManager(FPM);
Builder.populateModulePassManager(MPM);
Builder.LoopVectorize = OptLevel > 1 && SizeLevel < 2;
}
static void AddStandardCompilePasses(PassManagerBase &PM) {