Also remove logic in LateVectorize
authorArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 13 Aug 2013 16:12:04 +0000 (16:12 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Tue, 13 Aug 2013 16:12:04 +0000 (16:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188285 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/PassManagerBuilder.cpp

index 3883ea242c1ab60ef38734cab07522be00271291..743dc4234343c9b8fbf27c4a1c01f9cf71a054d6 100644 (file)
@@ -249,7 +249,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
 
     // Add the various vectorization passes and relevant cleanup passes for
     // them since we are no longer in the middle of the main scalar pipeline.
-    if (LoopVectorize && OptLevel > 1 && SizeLevel < 2) {
+    if (LoopVectorize) {
       MPM.add(createLoopVectorizePass());
 
       if (!DisableUnrollLoops)