[llvm] [ValueTracking] Make the MaxAnalysisRecursionDepth overridable (PR #137721)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Sat May 24 05:14:39 PDT 2025
https://github.com/artagnon commented:
I think it would be preferable if we could count Depth downwards instead of upwards, as many of the APIs already have a depth parameter. Then, we can pass the max-depth, and it would count upward from 0, instead of passing 0 and relying on a hard-coded parameter. I'll work on a patch for this shortly. This would also match the way InstSimplify counts wrt to its Depth parameter.
https://github.com/llvm/llvm-project/pull/137721
More information about the llvm-commits
mailing list