Add an option to the LTO code generator to disable vectorization during LTO
[oota-llvm.git] / lib / Transforms / IPO / PassManagerBuilder.cpp
index 92f49d3f6457bd4dc5985b4abdcc0c4dc7699a6a..da85a91c78aef4f5e88ec974348ebe76519fc291 100644 (file)
@@ -444,7 +444,7 @@ void PassManagerBuilder::addLTOOptimizationPasses(PassManagerBase &PM) {
   // More loops are countable; try to optimize them.
   PM.add(createIndVarSimplifyPass());
   PM.add(createLoopDeletionPass());
-  PM.add(createLoopVectorizePass(DisableUnrollLoops, LoopVectorize));
+  PM.add(createLoopVectorizePass(true, LoopVectorize));
 
   // More scalar chains could be vectorized due to more alias information
   if (RunSLPAfterLoopVectorization)