[llvm] [SCEV] Introduce exact flag for UDiv (PR #225065)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 01:11:48 PDT 2026
================
@@ -217,7 +217,7 @@ const SCEV *vputils::getSCEVExprForVPValue(const VPValue *V,
});
// A SDiv with non-negative operands is equivalent to an UDiv.
if (match(V, m_SDiv(m_VPValue(LHSVal), m_VPValue(RHSVal)))) {
- return CreateSCEV({LHSVal, RHSVal}, [&](ArrayRef<SCEVUse> Ops) {
+ return CreateSCEV({LHSVal, RHSVal}, [&](ArrayRef<SCEVUse> Ops) -> SCEVUse {
----------------
david-arm wrote:
Is this required for the PR or can it be committed separately?
https://github.com/llvm/llvm-project/pull/225065
More information about the llvm-commits
mailing list