Lines Matching full:stride
838 // Calculate GEP Stride and accumulated const ModOffset. Return Stride and
843 std::optional<APInt> Stride;
845 // Return a minimum gep stride, greatest common divisor of consective gep
857 if (!Stride)
858 Stride = Scale;
860 Stride = APIntOps::GreatestCommonDivisor(*Stride, Scale);
868 if (!isa<GlobalVariable>(PtrOp) || !Stride)
872 // remainder of division by minimum GEP stride.
873 ModOffset = ModOffset.srem(*Stride);
875 ModOffset += *Stride;
877 return {*Stride, ModOffset};
902 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL);
904 // Any possible offset could be multiple of GEP stride. And any valid
908 LA <= GV->getAlign().valueOrOne() && Stride.getZExtValue() < LA.value()) {
910 Stride = APInt(BW, LA.value());
918 for (; ConstOffset.getZExtValue() <= E; ConstOffset += Stride)