[llvm] [ValueTracking] Implement udiv support for isKnownNonNullFromDominatingCondition (PR #67282)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 24 23:06:43 PDT 2023
================
@@ -2263,6 +2263,12 @@ static bool isKnownNonNullFromDominatingCondition(const Value *V,
return true;
}
+ if (const auto *Div = dyn_cast<BinaryOperator>(U);
+ Div && Div->getOpcode() == BinaryOperator::UDiv &&
+ Div->getOperand(1) == V &&
----------------
dtcxzyw wrote:
```suggestion
if (match(U, m_UDiv(m_Value(), m_Specific(V)) &&
```
https://github.com/llvm/llvm-project/pull/67282
More information about the llvm-commits
mailing list