Give -loop-vectorize an explicit default.
authorAndrew Trick <atrick@apple.com>
Wed, 6 Mar 2013 18:22:22 +0000 (18:22 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 6 Mar 2013 18:22:22 +0000 (18:22 +0000)
This way, clang -mllvm -print-options shows that the driver is overriding it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176569 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/PassManagerBuilder.cpp

index 47b2b51899c6563349c9bd5977fc4b4b3c65b6a9..8c0ab78ba4bedda1cfcde3c3ebe076d97bd151bd 100644 (file)
@@ -29,7 +29,7 @@
 using namespace llvm;
 
 static cl::opt<bool>
-RunLoopVectorization("vectorize-loops",
+RunLoopVectorization("vectorize-loops", cl::init(false),
                      cl::desc("Run the Loop vectorization passes"));
 
 static cl::opt<bool>