[PATCH] D98422: [ValueTracking] Handle two PHIs in isKnownNonEqual()
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 25 12:28:40 PDT 2021
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2548
+ if (Depth >= MaxAnalysisRecursionDepth - 1)
+ return false;
+
----------------
Ah sorry, this isn't what I meant. What the other code does is pass `MaxAnalysisRecursionDepth - 1` to the recursive call (i.e. the recursive `isKnownNonEqual` call in this case). I just tried this, but unfortunately this would not cover your case (it needs to recurse two more levels).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98422/new/
https://reviews.llvm.org/D98422
More information about the llvm-commits
mailing list