Remove Function::getParamAttributes and use the AttributeSet accessor methods instead.
[oota-llvm.git] / lib / Transforms / IPO / PassManagerBuilder.cpp
index 73511838d43941b102b1dc4da4a25a59c8e80928..40bbfb67f28213746182b4d32274b1236b33a6d4 100644 (file)
@@ -20,7 +20,6 @@
 #include "llvm/Analysis/Verifier.h"
 #include "llvm/DefaultPasses.h"
 #include "llvm/PassManager.h"
-#include "llvm/PassManager.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Target/TargetLibraryInfo.h"
@@ -188,7 +187,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)