OSDN Git Service

Revert "[LSR] Tweak setup cost depth threshold to 10."
authorAmara Emerson <aemerson@apple.com>
Mon, 13 May 2019 15:37:18 +0000 (15:37 +0000)
committerAmara Emerson <aemerson@apple.com>
Mon, 13 May 2019 15:37:18 +0000 (15:37 +0000)
Changing the threshold might not be the best long term approach. Revert for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360589 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopStrengthReduce.cpp

index 9247ae3..7688601 100644 (file)
@@ -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(10),
+    "lsr-setupcost-depth-limit", cl::Hidden, cl::init(7),
     cl::desc("The limit on recursion depth for LSRs setup cost"));
 
 #ifndef NDEBUG