[llvm] [ValueTracking] Make the MaxAnalysisRecursionDepth overridable (PR #137721)

Jeffrey Byrnes via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 4 15:16:21 PDT 2025


================
@@ -793,7 +801,7 @@ static void computeKnownBitsFromCond(const Value *V, Value *Cond,
                                      KnownBits &Known, unsigned Depth,
                                      const SimplifyQuery &SQ, bool Invert) {
   Value *A, *B;
-  if (Depth < MaxAnalysisRecursionDepth &&
+  if (Depth < getAnalysisRecursionDepthLimit() &&
----------------
jrbyrnes wrote:

Oops -- still need to address this.

https://github.com/llvm/llvm-project/pull/137721


More information about the llvm-commits mailing list