[llvm] r278343 - [SLP] Make RecursionMaxDepth a command line option (NFC)
Matthew Simpson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 08:28:45 PDT 2016
Author: mssimpso
Date: Thu Aug 11 10:28:45 2016
New Revision: 278343
URL: http://llvm.org/viewvc/llvm-project?rev=278343&view=rev
Log:
[SLP] Make RecursionMaxDepth a command line option (NFC)
Modified:
llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=278343&r1=278342&r2=278343&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Thu Aug 11 10:28:45 2016
@@ -82,8 +82,9 @@ static cl::opt<int> MinVectorRegSizeOpti
"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.
More information about the llvm-commits
mailing list