diff options
author | Matthew Simpson <mssimpso@codeaurora.org> | 2016-08-11 15:28:45 +0000 |
---|---|---|
committer | Matthew Simpson <mssimpso@codeaurora.org> | 2016-08-11 15:28:45 +0000 |
commit | 3f69195b9e43b76a35ae8c8d86cf51ea942a6b0e (patch) | |
tree | 985b950aaf80f5f4a486a689f035a708fcaaed45 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 38ae83de381f3fa935d3517f377326780cd9753e (diff) | |
download | bcm5719-llvm-3f69195b9e43b76a35ae8c8d86cf51ea942a6b0e.tar.gz bcm5719-llvm-3f69195b9e43b76a35ae8c8d86cf51ea942a6b0e.zip |
[SLP] Make RecursionMaxDepth a command line option (NFC)
llvm-svn: 278343
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 05ffa067f65..fb023545fb6 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -82,8 +82,9 @@ static cl::opt<int> MinVectorRegSizeOption( "slp-min-reg-size", cl::init(128), cl::Hidden, cl::desc("Attempt to vectorize for this register size in bits")); -// FIXME: Set this via cl::opt to allow overriding. -static const unsigned RecursionMaxDepth = 12; +static cl::opt<unsigned> RecursionMaxDepth( + "slp-recursion-max-depth", cl::init(12), cl::Hidden, + cl::desc("Limit the recursion depth when building a vectorizable tree")); // Limit the number of alias checks. The limit is chosen so that // it has no negative effect on the llvm benchmarks. |