[llvm] [ValueTracking] Implement sdiv/udiv support for isKnownNonNullFromDominatingCondition (PR #67282)
Dhruv Chawla via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 01:16:41 PDT 2023
================
@@ -2263,6 +2263,11 @@ static bool isKnownNonNullFromDominatingCondition(const Value *V,
return true;
}
+ if ((match(U, m_UDiv(m_Value(), m_Specific(V))) ||
+ match(U, m_SDiv(m_Value(), m_Specific(V)))) &&
----------------
dc03 wrote:
@dtcxzyw I think its fine to keep this PR to just IDiv (I'm mainly interested in closing the issue), the others can be implemented separately.
https://github.com/llvm/llvm-project/pull/67282
More information about the llvm-commits
mailing list