diff options
| author | Amara Emerson <aemerson@apple.com> | 2019-05-10 17:29:35 +0000 |
|---|---|---|
| committer | Amara Emerson <aemerson@apple.com> | 2019-05-10 17:29:35 +0000 |
| commit | b6af291772e7db08a977918820f95341922002bf (patch) | |
| tree | 2af754a4fd42adbb5957da343cff51acee9af2fd /llvm/lib | |
| parent | 605627374e163323d3d150f03eb903bdc69fcbdd (diff) | |
| download | bcm5719-llvm-b6af291772e7db08a977918820f95341922002bf.tar.gz bcm5719-llvm-b6af291772e7db08a977918820f95341922002bf.zip | |
[LSR] Tweak setup cost depth threshold to 10.
The original change introduced a depth limit of 7 which caused a 22% regression
in the Swift MapReduceLazyCollection & Ackermann benchmarks. This new threshold
still ensures that the original test case doesn't hang.
rdar://50359639
llvm-svn: 360444
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 768860140e6..9247ae35adb 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -165,7 +165,7 @@ static cl::opt<unsigned> ComplexityLimit( cl::desc("LSR search space complexity limit")); static cl::opt<unsigned> SetupCostDepthLimit( - "lsr-setupcost-depth-limit", cl::Hidden, cl::init(7), + "lsr-setupcost-depth-limit", cl::Hidden, cl::init(10), cl::desc("The limit on recursion depth for LSRs setup cost")); #ifndef NDEBUG |

