Skip to content

Commit c6ce309

Browse files
committed
!fixup add TODO for negative steps/reverse accesses
1 parent 571a942 commit c6ce309

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4065,6 +4065,7 @@ static bool isConsecutiveLoad(VPValue *Addr, Type *LoadTy, ScalarEvolution &SE,
40654065

40664066
TypeSize TS = DL.getTypeStoreSize(LoadTy);
40674067
const SCEV *ElementSizeSCEV = SE.getSizeOfExpr(StepSCEV->getType(), TS);
4068+
// TODO: Extend support to reverse accesses (with negative steps).
40684069
return SE.isKnownPositive(StepSCEV) && StepSCEV == ElementSizeSCEV;
40694070
}
40704071

0 commit comments

Comments
 (0)