[llvm] r176569 - Give -loop-vectorize an explicit default.

Andrew Trick atrick at apple.com
Wed Mar 6 10:22:22 PST 2013


Author: atrick
Date: Wed Mar  6 12:22:22 2013
New Revision: 176569

URL: http://llvm.org/viewvc/llvm-project?rev=176569&view=rev
Log:
Give -loop-vectorize an explicit default.

This way, clang -mllvm -print-options shows that the driver is overriding it.

Modified:
    llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp

Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=176569&r1=176568&r2=176569&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Wed Mar  6 12:22:22 2013
@@ -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>





More information about the llvm-commits mailing list