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:
parent
0caff76271
commit
406976609b
@ -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)
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user