@@ -403,17 +403,17 @@ class SCEVValidator : public SCEVVisitor<SCEVValidator, ValidatorResult> {
403
403
if (!PollyAllowUnsignedOperations)
404
404
return ValidatorResult (SCEVType::INVALID);
405
405
406
- auto *Dividend = Expr->getLHS ();
407
- auto *Divisor = Expr->getRHS ();
406
+ const SCEV *Dividend = Expr->getLHS ();
407
+ const SCEV *Divisor = Expr->getRHS ();
408
408
return visitDivision (Dividend, Divisor, Expr);
409
409
}
410
410
411
411
ValidatorResult visitSDivInstruction (Instruction *SDiv, const SCEV *Expr) {
412
412
assert (SDiv->getOpcode () == Instruction::SDiv &&
413
413
" Assumed SDiv instruction!" );
414
414
415
- auto *Dividend = SE.getSCEV (SDiv->getOperand (0 ));
416
- auto *Divisor = SE.getSCEV (SDiv->getOperand (1 ));
415
+ const SCEV *Dividend = SE.getSCEV (SDiv->getOperand (0 ));
416
+ const SCEV *Divisor = SE.getSCEV (SDiv->getOperand (1 ));
417
417
return visitDivision (Dividend, Divisor, Expr, SDiv);
418
418
}
419
419
@@ -427,7 +427,7 @@ class SCEVValidator : public SCEVVisitor<SCEVValidator, ValidatorResult> {
427
427
return visitGenericInst (SRem, S);
428
428
429
429
auto *Dividend = SRem->getOperand (0 );
430
- auto *DividendSCEV = SE.getSCEV (Dividend);
430
+ const SCEV *DividendSCEV = SE.getSCEV (Dividend);
431
431
return visit (DividendSCEV);
432
432
}
433
433
@@ -566,11 +566,11 @@ class SCEVFindValues final {
566
566
Inst->getOpcode () != Instruction::SDiv))
567
567
return false ;
568
568
569
- auto *Dividend = SE.getSCEV (Inst->getOperand (1 ));
569
+ const SCEV *Dividend = SE.getSCEV (Inst->getOperand (1 ));
570
570
if (!isa<SCEVConstant>(Dividend))
571
571
return false ;
572
572
573
- auto *Divisor = SE.getSCEV (Inst->getOperand (0 ));
573
+ const SCEV *Divisor = SE.getSCEV (Inst->getOperand (0 ));
574
574
SCEVFindValues FindValues (SE, Values);
575
575
SCEVTraversal<SCEVFindValues> ST (FindValues);
576
576
ST.visitAll (Dividend);
@@ -623,7 +623,7 @@ bool polly::isAffineExpr(const Region *R, llvm::Loop *Scope, const SCEV *Expr,
623
623
624
624
static bool isAffineExpr (Value *V, const Region *R, Loop *Scope,
625
625
ScalarEvolution &SE, ParameterSetTy &Params) {
626
- auto *E = SE.getSCEV (V);
626
+ const SCEV *E = SE.getSCEV (V);
627
627
if (isa<SCEVCouldNotCompute>(E))
628
628
return false ;
629
629
@@ -684,10 +684,10 @@ polly::extractConstantFactor(const SCEV *S, ScalarEvolution &SE) {
684
684
685
685
auto *AddRec = dyn_cast<SCEVAddRecExpr>(S);
686
686
if (AddRec) {
687
- auto *StartExpr = AddRec->getStart ();
687
+ const SCEV *StartExpr = AddRec->getStart ();
688
688
if (StartExpr->isZero ()) {
689
689
auto StepPair = extractConstantFactor (AddRec->getStepRecurrence (SE), SE);
690
- auto *LeftOverAddRec =
690
+ const SCEV *LeftOverAddRec =
691
691
SE.getAddRecExpr (StartExpr, StepPair.second , AddRec->getLoop (),
692
692
AddRec->getNoWrapFlags ());
693
693
return std::make_pair (StepPair.first , LeftOverAddRec);
@@ -717,7 +717,7 @@ polly::extractConstantFactor(const SCEV *S, ScalarEvolution &SE) {
717
717
return std::make_pair (ConstPart, S);
718
718
}
719
719
720
- auto *NewAdd = SE.getAddExpr (LeftOvers, Add->getNoWrapFlags ());
720
+ const SCEV *NewAdd = SE.getAddExpr (LeftOvers, Add->getNoWrapFlags ());
721
721
return std::make_pair (Factor, NewAdd);
722
722
}
723
723
@@ -726,7 +726,7 @@ polly::extractConstantFactor(const SCEV *S, ScalarEvolution &SE) {
726
726
return std::make_pair (ConstPart, S);
727
727
728
728
SmallVector<const SCEV *, 4 > LeftOvers;
729
- for (auto *Op : Mul->operands ())
729
+ for (const SCEV *Op : Mul->operands ())
730
730
if (isa<SCEVConstant>(Op))
731
731
ConstPart = cast<SCEVConstant>(SE.getMulExpr (ConstPart, Op));
732
732
else
0 commit comments