[llvm] [ValueTracking] Infer NonEqual from dominating conditions/assumptions (PR #117442)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 03:34:42 PST 2024
================
@@ -10037,10 +10081,10 @@ void llvm::findValuesAffectedByCondition(
Worklist.push_back(B);
}
} else if (match(V, m_ICmp(Pred, m_Value(A), m_Value(B)))) {
- AddCmpOperands(A, B);
-
bool HasRHSC = match(B, m_ConstantInt());
if (ICmpInst::isEquality(Pred)) {
+ AddAffected(A);
+ AddAffected(B);
----------------
nikic wrote:
No, I'm not working on this.
https://github.com/llvm/llvm-project/pull/117442
More information about the llvm-commits
mailing list