[llvm] [InstCombine] Improve `(icmp pred (and X, Y), ...)` fold. (PR #66787)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 08:05:36 PDT 2023
================
@@ -245,32 +246,38 @@ class LLVM_LIBRARY_VISIBILITY InstCombiner {
if (match(V, PatternMatch::m_AnyIntegralConstant()))
return true;
+ if (Depth++ >= MaxAnalysisRecursionDepth)
----------------
RKSimon wrote:
(style) For recursion methods add Depth on the recursive calls themselves (isFreeToInvert(X,Y, Depth + 1)
https://github.com/llvm/llvm-project/pull/66787
More information about the llvm-commits
mailing list