Home
last modified time | relevance | path

Searched refs:IdxDiff (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp392 static bool checkIfSafeAddSequence(const APInt &IdxDiff, Instruction *AddOpA, in checkIfSafeAddSequence() argument
427 IdxDiff.getSExtValue() == CstVal) in checkIfSafeAddSequence()
437 IdxDiff.getSExtValue() == -CstVal) in checkIfSafeAddSequence()
454 IdxDiff.getSExtValue() == (CstValB - CstValA)) in checkIfSafeAddSequence()
499 APInt IdxDiff = PtrDelta.udiv(Stride).zext(IdxBitWidth); in lookThroughComplexAddresses() local
520 IdxDiff.sle(cast<ConstantInt>(OpB->getOperand(1))->getSExtValue()) && in lookThroughComplexAddresses()
537 Safe = checkIfSafeAddSequence(IdxDiff, OpA, MatchingOpIdxA, OpB, in lookThroughComplexAddresses()
550 APInt BitsAllowedToBeSet = Known.Zero.zext(IdxDiff.getBitWidth()); in lookThroughComplexAddresses()
553 if (BitsAllowedToBeSet.ult(IdxDiff)) in lookThroughComplexAddresses()
559 const SCEV *C = SE.getConstant(IdxDiff.trunc(BitWidth)); in lookThroughComplexAddresses()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1971 unsigned IdxDiff = Idx - PrevElt->second; in isSimpleVIDSequence() local
1980 int64_t Remainder = ValDiff % IdxDiff; in isSimpleVIDSequence()
1986 ValDiff /= IdxDiff; in isSimpleVIDSequence()
1987 IdxDiff = 1; in isSimpleVIDSequence()
1996 SeqStepDenom = IdxDiff; in isSimpleVIDSequence()
1997 else if (IdxDiff != *SeqStepDenom) in isSimpleVIDSequence()