aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>2013-01-29 21:42:08 +0000
committerPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>2013-01-29 21:42:08 +0000
commitd8550495768d87f9b0d3219c40a5b15518ccacc8 (patch)
tree1dcec15f6640c03504e9282cb091efbeb9249d2e /lib/Transforms
parent485da648484e443f38c8ddbe5cb8ace07e2166e7 (diff)
LoopVectorize: convert TinyTripCountVectorThreshold constant
to a command line switch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 16eb21ef1d..1b242c93ba 100644
--- a/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -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;