[llvm] [VPlan] Use DerivedIV in convertToStridedAccesses (PR #209611)
Mel Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 06:58:35 PDT 2026
================
@@ -4129,13 +4129,19 @@ static void expandVPDerivedIV(VPDerivedIVRecipe *R) {
switch (R->getInductionKind()) {
case InductionDescriptor::IK_IntInduction: {
assert(Index->getScalarType() == Start->getScalarType() &&
- "Index type does not match StartValue type");
+ "Index type does not match Start type");
return R->replaceAllUsesWith(Builder.createAdd(
- Start, Builder.createOverflowingOp(Instruction::Mul, {Index, Step})));
+ Start,
+ Builder.createOverflowingOp(Instruction::Mul, {Index, Step},
+ R->getNoWrapFlags()),
+ R->getDebugLoc(), "", R->getNoWrapFlags()));
}
----------------
Mel-Chen wrote:
Would strided addresses actually use this? As far as I can tell, they should all be ptr inductions, right?
https://github.com/llvm/llvm-project/pull/209611
More information about the llvm-commits
mailing list