@@ -1474,14 +1474,11 @@ static bool findGCD(unsigned Bits, const APInt &AM, const APInt &BM,
14741474 APInt R = G0;
14751475 APInt::sdivrem (G0, G1, Q, R);
14761476 while (R != 0 ) {
1477- APInt A2 = A0 - Q * A1;
1478- A0 = A1;
1479- A1 = A2;
1480- APInt B2 = B0 - Q * B1;
1481- B0 = B1;
1482- B1 = B2;
1483- G0 = G1;
1484- G1 = R;
1477+ // clang-format off
1478+ APInt A2 = A0 - Q*A1; A0 = A1; A1 = A2;
1479+ APInt B2 = B0 - Q*B1; B0 = B1; B1 = B2;
1480+ G0 = G1; G1 = R;
1481+ // clang-format on
14851482 APInt::sdivrem (G0, G1, Q, R);
14861483 }
14871484 G = G1;
@@ -2770,8 +2767,10 @@ bool DependenceInfo::testBounds(unsigned char DirKind, unsigned Level,
27702767// and the upper bound is always >= 0.
27712768void DependenceInfo::findBoundsALL (CoefficientInfo *A, CoefficientInfo *B,
27722769 BoundInfo *Bound, unsigned K) const {
2773- Bound[K].Lower [Dependence::DVEntry::ALL] = nullptr ; // Represents -infinity
2774- Bound[K].Upper [Dependence::DVEntry::ALL] = nullptr ; // Represents +infinity
2770+ Bound[K].Lower [Dependence::DVEntry::ALL] =
2771+ nullptr ; // Default value = -infinity.
2772+ Bound[K].Upper [Dependence::DVEntry::ALL] =
2773+ nullptr ; // Default value = +infinity.
27752774 if (Bound[K].Iterations ) {
27762775 Bound[K].Lower [Dependence::DVEntry::ALL] = SE->getMulExpr (
27772776 SE->getMinusSCEV (A[K].NegPart , B[K].PosPart ), Bound[K].Iterations );
@@ -3144,8 +3143,6 @@ bool DependenceInfo::propagateLine(const SCEV *&Src, const SCEV *&Dst,
31443143 APInt CdivB = Charlie.sdiv (Beta);
31453144 assert (Charlie.srem (Beta) == 0 && " C should be evenly divisible by B" );
31463145 const SCEV *AP_K = findCoefficient (Dst, CurLoop);
3147- // Src = SE->getAddExpr(Src, SE->getMulExpr(AP_K,
3148- // SE->getConstant(CdivB)));
31493146 Src = SE->getMinusSCEV (Src, SE->getMulExpr (AP_K, SE->getConstant (CdivB)));
31503147 Dst = zeroCoefficient (Dst, CurLoop);
31513148 if (!findCoefficient (Src, CurLoop)->isZero ())
0 commit comments