Disable vectorization for -Oz.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nadav Rotem 2013-06-17 17:22:40 +00:00
parent 7d75760066
commit 7459ff4be2

View File

@ -192,7 +192,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
MPM.add(createLoopIdiomPass()); // Recognize idioms like memset.
MPM.add(createLoopDeletionPass()); // Delete dead loops
if (LoopVectorize && (OptLevel > 1))
if (LoopVectorize && OptLevel > 1 && SizeLevel < 2)
MPM.add(createLoopVectorizePass());
if (!DisableUnrollLoops)