[llvm] r360589 - Revert "[LSR] Tweak setup cost depth threshold to 10."

Amara Emerson via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 08:37:18 PDT 2019


Author: aemerson
Date: Mon May 13 08:37:18 2019
New Revision: 360589

URL: http://llvm.org/viewvc/llvm-project?rev=360589&view=rev
Log:
Revert "[LSR] Tweak setup cost depth threshold to 10."

Changing the threshold might not be the best long term approach. Revert for now.

Modified:
    llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=360589&r1=360588&r2=360589&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Mon May 13 08:37:18 2019
@@ -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




More information about the llvm-commits mailing list