Lines Matching refs:Stride
838 // Calculate GEP Stride and accumulated const ModOffset. Return Stride and
843 std::optional<APInt> Stride;
857 if (!Stride)
858 Stride = Scale;
860 Stride = APIntOps::GreatestCommonDivisor(*Stride, Scale);
868 if (!isa<GlobalVariable>(PtrOp) || !Stride)
873 ModOffset = ModOffset.srem(*Stride);
875 ModOffset += *Stride;
877 return {*Stride, ModOffset};
902 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL);
908 LA <= GV->getAlign().valueOrOne() && Stride.getZExtValue() < LA.value()) {
910 Stride = APInt(BW, LA.value());
918 for (; ConstOffset.getZExtValue() <= E; ConstOffset += Stride)