Enable the loop vectorizer in clang and not in the pass manager, so that we can disab...
authorNadav Rotem <nrotem@apple.com>
Tue, 18 Dec 2012 23:09:44 +0000 (23:09 +0000)
committerNadav Rotem <nrotem@apple.com>
Tue, 18 Dec 2012 23:09:44 +0000 (23:09 +0000)
llvm-svn: 170470

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

index 7351183..a9a9f2e 100644 (file)
@@ -188,7 +188,7 @@ void PassManagerBuilder::populateModulePassManager(PassManagerBase &MPM) {
   MPM.add(createLoopIdiomPass());             // Recognize idioms like memset.
   MPM.add(createLoopDeletionPass());          // Delete dead loops
 
-  if (true && OptLevel > 1)
+  if (LoopVectorize && OptLevel > 1)
     MPM.add(createLoopVectorizePass());
 
   if (!DisableUnrollLoops)