1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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

I have moved this logic into clang and opt.

llvm-svn: 188281
This commit is contained in:
Arnold Schwaighofer 2013-08-13 15:51:25 +00:00
parent 0caff76271
commit 406976609b
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) {