[llvm] [VPlan] Support URem in getSCEVExprForVPValue. (PR #199794)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 12:50:57 PDT 2026
================
@@ -216,6 +216,11 @@ const SCEV *vputils::getSCEVExprForVPValue(const VPValue *V,
return CreateSCEV({LHSVal, RHSVal}, [&](ArrayRef<SCEVUse> Ops) {
return SE.getUDivExpr(Ops[0], Ops[1]);
});
+ if (match(V,
+ m_Binary<Instruction::URem>(m_VPValue(LHSVal), m_VPValue(RHSVal))))
+ return CreateSCEV({LHSVal, RHSVal}, [&](ArrayRef<SCEVUse> Ops) {
+ return SE.getURemExpr(Ops[0], Ops[1]);
+ });
----------------
fhahn wrote:
Done, thanks
https://github.com/llvm/llvm-project/pull/199794
More information about the llvm-commits
mailing list