[llvm] [VPlan] Also expand integer SCEVAddExpr in expandSCEVExpr. (PR #200925)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 12:54:41 PDT 2026
================
@@ -938,21 +940,25 @@ VPValue *VPSCEVExpander::tryToExpand(const SCEV *S) {
return Builder.getPlan().getOrAddLiveIn(cast<SCEVUnknown>(S)->getValue());
case scVScale:
return Builder.createNaryOp(VPInstruction::VScale, {}, S->getType());
+ case scAddExpr:
case scMulExpr: {
- auto *Mul = cast<SCEVMulExpr>(S);
+ if (S->getType()->isPointerTy())
+ return nullptr;
----------------
artagnon wrote:
Hm, is this possible with SCEVAdds and SCEVMuls?
https://github.com/llvm/llvm-project/pull/200925
More information about the llvm-commits
mailing list