[PATCH] D98422: [Alias] Add a ah-hoc pattern with two PHI for isKnownNonEqual
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 15 10:55:12 PDT 2021
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2521
+ bool HasSameIncomingBB = true;
+ if (PN1 && PN2 && PN1->getParent() == PN2->getParent() && Q.DT != nullptr) {
+ // Check the incoming blocks of two PHIs are same.
----------------
If the parents are the same, then you don't need to check the incoming blocks, they must be the same.
You also don't need to check PN1 and PN2 for null, they are expected to be non-null in this function.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98422/new/
https://reviews.llvm.org/D98422
More information about the llvm-commits
mailing list