llvm.org GIT mirror llvm / b6171c5
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 Arnold Schwaighofer 6 years ago
2 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
194194 MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
195195 MPM.add(createLoopDeletionPass()); // Delete dead loops
196196
197 if (!LateVectorize && LoopVectorize && OptLevel > 1 && SizeLevel < 2)
197 if (!LateVectorize && LoopVectorize)
198198 MPM.add(createLoopVectorizePass());
199199
200200 if (!DisableUnrollLoops)
450450
451451 Builder.populateFunctionPassManager(FPM);
452452 Builder.populateModulePassManager(MPM);
453
454 Builder.LoopVectorize = OptLevel > 1 && SizeLevel < 2;
453455 }
454456
455457 static void AddStandardCompilePasses(PassManagerBase &PM) {