LoopVectorize: convert TinyTripCountVectorThreshold constant
[oota-llvm.git] / lib / Transforms / Vectorize / LoopVectorize.cpp
index 16eb21ef1d52c531470e33f940d15db579eb3ae7..1b242c93ba13c95b3b96d5186f7b38e637518b2d 100644 (file)
@@ -101,7 +101,9 @@ EnableIfConversion("enable-if-conversion", cl::init(true), cl::Hidden,
                    cl::desc("Enable if-conversion during vectorization."));
 
 /// We don't vectorize loops with a known constant trip count below this number.
-static const unsigned TinyTripCountVectorThreshold = 16;
+static cl::opt<unsigned>
+TinyTripCountVectorThreshold("vectorizer-min-trip-count", cl::init(16), cl::Hidden,
+                             cl::desc("The minimum trip count in the loops to vectorize."));
 
 /// We don't unroll loops with a known constant trip count below this number.
 static const unsigned TinyTripCountUnrollThreshold = 128;