mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 10:54:42 +00:00
Enable the loop vectorizer only on O2 and above. (Still disabled by default)
llvm-svn: 169774
This commit is contained in:
parent
3801f0fed5
commit
a043fa4083
@ -188,7 +188,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
|
||||
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
|
||||
MPM.add(createLoopDeletionPass()); // Delete dead loops
|
||||
|
||||
if (LoopVectorize)
|
||||
if (LoopVectorize && OptLevel > 1)
|
||||
MPM.add(createLoopVectorizePass());
|
||||
|
||||
if (!DisableUnrollLoops)
|
||||
|
Loading…
x
Reference in New Issue
Block a user