Lines Matching refs:Delta

985   const SCEV *Delta = SE->getMinusSCEV(X, Y);  in isKnownPredicate()  local
988 return Delta->isZero(); in isKnownPredicate()
990 return SE->isKnownNonZero(Delta); in isKnownPredicate()
992 return SE->isKnownNonNegative(Delta); in isKnownPredicate()
994 return SE->isKnownNonPositive(Delta); in isKnownPredicate()
996 return SE->isKnownPositive(Delta); in isKnownPredicate()
998 return SE->isKnownNegative(Delta); in isKnownPredicate()
1154 const SCEV *Delta = SE->getMinusSCEV(SrcConst, DstConst); in strongSIVtest() local
1155 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta); in strongSIVtest()
1156 LLVM_DEBUG(dbgs() << ", " << *Delta->getType() << "\n"); in strongSIVtest()
1159 if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) { in strongSIVtest()
1163 SE->isKnownNonNegative(Delta) ? Delta : SE->getNegativeSCEV(Delta); in strongSIVtest()
1176 if (isa<SCEVConstant>(Delta) && isa<SCEVConstant>(Coeff)) { in strongSIVtest()
1177 APInt ConstDelta = cast<SCEVConstant>(Delta)->getAPInt(); in strongSIVtest()
1201 else if (Delta->isZero()) { in strongSIVtest()
1203 Result.DV[Level].Distance = Delta; in strongSIVtest()
1204 NewConstraint.setDistance(Delta, CurLoop); in strongSIVtest()
1210 LLVM_DEBUG(dbgs() << "\t Distance = " << *Delta << "\n"); in strongSIVtest()
1211 Result.DV[Level].Distance = Delta; // since X/1 == X in strongSIVtest()
1212 NewConstraint.setDistance(Delta, CurLoop); in strongSIVtest()
1218 SE->getNegativeSCEV(Delta), CurLoop); in strongSIVtest()
1222 bool DeltaMaybeZero = !SE->isKnownNonZero(Delta); in strongSIVtest()
1223 bool DeltaMaybePositive = !SE->isKnownNonPositive(Delta); in strongSIVtest()
1224 bool DeltaMaybeNegative = !SE->isKnownNonNegative(Delta); in strongSIVtest()
1287 const SCEV *Delta = SE->getMinusSCEV(DstConst, SrcConst); in weakCrossingSIVtest() local
1288 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); in weakCrossingSIVtest()
1289 NewConstraint.setLine(Coeff, Coeff, Delta, CurLoop); in weakCrossingSIVtest()
1290 if (Delta->isZero()) { in weakCrossingSIVtest()
1298 Result.DV[Level].Distance = Delta; // = 0 in weakCrossingSIVtest()
1310 Delta = SE->getNegativeSCEV(Delta); in weakCrossingSIVtest()
1316 SE->getSMaxExpr(SE->getZero(Delta->getType()), Delta), in weakCrossingSIVtest()
1317 SE->getMulExpr(SE->getConstant(Delta->getType(), 2), ConstCoeff)); in weakCrossingSIVtest()
1320 const SCEVConstant *ConstDelta = dyn_cast<SCEVConstant>(Delta); in weakCrossingSIVtest()
1326 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); in weakCrossingSIVtest()
1328 if (SE->isKnownNegative(Delta)) { in weakCrossingSIVtest()
1337 if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) { in weakCrossingSIVtest()
1343 if (isKnownPredicate(CmpInst::ICMP_SGT, Delta, ML)) { in weakCrossingSIVtest()
1349 if (isKnownPredicate(CmpInst::ICMP_EQ, Delta, ML)) { in weakCrossingSIVtest()
1359 Result.DV[Level].Distance = SE->getZero(Delta->getType()); in weakCrossingSIVtest()
1403 const APInt &Delta, APInt &G, APInt &X, APInt &Y) { in findGCD() argument
1423 R = Delta.srem(G); in findGCD()
1426 Q = Delta.sdiv(G); in findGCD()
1500 const SCEV *Delta = SE->getMinusSCEV(DstConst, SrcConst); in exactSIVtest() local
1501 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); in exactSIVtest()
1503 Delta, CurLoop); in exactSIVtest()
1504 const SCEVConstant *ConstDelta = dyn_cast<SCEVConstant>(Delta); in exactSIVtest()
1529 collectConstantUpperBound(CurLoop, Delta->getType())) { in exactSIVtest()
1712 const SCEV *Delta = SE->getMinusSCEV(SrcConst, DstConst); in weakZeroSrcSIVtest() local
1713 NewConstraint.setLine(SE->getZero(Delta->getType()), DstCoeff, Delta, in weakZeroSrcSIVtest()
1715 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); in weakZeroSrcSIVtest()
1731 SE->isKnownNegative(ConstCoeff) ? SE->getNegativeSCEV(Delta) : Delta; in weakZeroSrcSIVtest()
1735 if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) { in weakZeroSrcSIVtest()
1764 if (isa<SCEVConstant>(Delta) && in weakZeroSrcSIVtest()
1765 !isRemainderZero(cast<SCEVConstant>(Delta), ConstCoeff)) { in weakZeroSrcSIVtest()
1821 const SCEV *Delta = SE->getMinusSCEV(DstConst, SrcConst); in weakZeroDstSIVtest() local
1822 NewConstraint.setLine(SrcCoeff, SE->getZero(Delta->getType()), Delta, in weakZeroDstSIVtest()
1824 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); in weakZeroDstSIVtest()
1840 SE->isKnownNegative(ConstCoeff) ? SE->getNegativeSCEV(Delta) : Delta; in weakZeroDstSIVtest()
1844 if (const SCEV *UpperBound = collectUpperBound(CurLoop, Delta->getType())) { in weakZeroDstSIVtest()
1873 if (isa<SCEVConstant>(Delta) && in weakZeroDstSIVtest()
1874 !isRemainderZero(cast<SCEVConstant>(Delta), ConstCoeff)) { in weakZeroDstSIVtest()
1901 const SCEV *Delta = SE->getMinusSCEV(DstConst, SrcConst); in exactRDIVtest() local
1902 LLVM_DEBUG(dbgs() << "\t Delta = " << *Delta << "\n"); in exactRDIVtest()
1903 const SCEVConstant *ConstDelta = dyn_cast<SCEVConstant>(Delta); in exactRDIVtest()
1927 collectConstantUpperBound(SrcLoop, Delta->getType())) { in exactRDIVtest()
1937 collectConstantUpperBound(DstLoop, Delta->getType())) { in exactRDIVtest()
2368 const SCEV *Delta = SE->getMinusSCEV(DstConst, SrcConst); in gcdMIVtest() local
2369 LLVM_DEBUG(dbgs() << " Delta = " << *Delta << "\n"); in gcdMIVtest()
2370 const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Delta); in gcdMIVtest()
2371 if (const SCEVAddExpr *Sum = dyn_cast<SCEVAddExpr>(Delta)) { in gcdMIVtest()
2464 Delta = SE->getMinusSCEV(SrcCoeff, DstCoeff); in gcdMIVtest()
2467 Constant = getConstantPart(Delta); in gcdMIVtest()
2537 const SCEV *Delta = SE->getMinusSCEV(B0, A0); in banerjeeMIVtest() local
2538 LLVM_DEBUG(dbgs() << "\tDelta = " << *Delta << '\n'); in banerjeeMIVtest()
2562 if (testBounds(Dependence::DVEntry::ALL, 0, Bound, Delta)) { in banerjeeMIVtest()
2566 Loops, DepthExpanded, Delta); in banerjeeMIVtest()
2609 const SCEV *Delta) const { in exploreDirections()
2687 if (testBounds(Dependence::DVEntry::LT, Level, Bound, Delta)) in exploreDirections()
2689 Loops, DepthExpanded, Delta); in exploreDirections()
2692 if (testBounds(Dependence::DVEntry::EQ, Level, Bound, Delta)) in exploreDirections()
2694 Loops, DepthExpanded, Delta); in exploreDirections()
2697 if (testBounds(Dependence::DVEntry::GT, Level, Bound, Delta)) in exploreDirections()
2699 Loops, DepthExpanded, Delta); in exploreDirections()
2705 return exploreDirections(Level + 1, A, B, Bound, Loops, DepthExpanded, Delta); in exploreDirections()
2711 BoundInfo *Bound, const SCEV *Delta) const { in testBounds()
2714 if (isKnownPredicate(CmpInst::ICMP_SGT, LowerBound, Delta)) in testBounds()
2717 if (isKnownPredicate(CmpInst::ICMP_SGT, Delta, UpperBound)) in testBounds()
2782 const SCEV *Delta = SE->getMinusSCEV(A[K].Coeff, B[K].Coeff); in findBoundsEQ() local
2783 const SCEV *NegativePart = getNegativePart(Delta); in findBoundsEQ()
2786 const SCEV *PositivePart = getPositivePart(Delta); in findBoundsEQ()
2793 const SCEV *Delta = SE->getMinusSCEV(A[K].Coeff, B[K].Coeff); in findBoundsEQ() local
2794 const SCEV *NegativePart = getNegativePart(Delta); in findBoundsEQ()
2797 const SCEV *PositivePart = getPositivePart(Delta); in findBoundsEQ()