[PATCH] D99912: Look through invertible recurrences in isKnownNonEqual
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 20 11:53:23 PDT 2021
nikic added inline comments.
================
Comment at: llvm/lib/Analysis/ValueTracking.cpp:2609
+ }
+ assert(PN1->getOperand(1) == BO1 && PN2->getOperand(1) == BO2);
+ return 0;
----------------
Guess there isn't really a reason why it should be the same operand on both. We could restrict to the case where it is, or else make getInvertibleOperand not return an operand index, and instead return a pair of value to which the (in)equality relation propagates.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99912/new/
https://reviews.llvm.org/D99912
More information about the llvm-commits
mailing list