@@ -1349,8 +1349,8 @@ static SCEVUse getUnsignedOverflowLimitForStep(SCEVUse Step,
1349
1349
namespace {
1350
1350
1351
1351
struct ExtendOpTraitsBase {
1352
- typedef SCEVUse (ScalarEvolution:: *GetExtendExprTy)(SCEVUse, Type *,
1353
- unsigned);
1352
+ typedef SCEVUse (ScalarEvolution::*GetExtendExprTy)(SCEVUse, Type *,
1353
+ unsigned);
1354
1354
};
1355
1355
1356
1356
// Used to make code generic over signed and unsigned overflow.
@@ -2383,8 +2383,8 @@ static bool CollectAddOperandsWithScales(SmallDenseMap<SCEVUse, APInt, 16> &M,
2383
2383
bool ScalarEvolution::willNotOverflow(Instruction::BinaryOps BinOp, bool Signed,
2384
2384
SCEVUse LHS, SCEVUse RHS,
2385
2385
const Instruction *CtxI) {
2386
- SCEVUse (ScalarEvolution:: *Operation)(SCEVUse, SCEVUse, SCEV::NoWrapFlags,
2387
- unsigned);
2386
+ SCEVUse (ScalarEvolution::*Operation)(SCEVUse, SCEVUse, SCEV::NoWrapFlags,
2387
+ unsigned);
2388
2388
switch (BinOp) {
2389
2389
default:
2390
2390
llvm_unreachable("Unsupported binary op");
@@ -2399,7 +2399,7 @@ bool ScalarEvolution::willNotOverflow(Instruction::BinaryOps BinOp, bool Signed,
2399
2399
break;
2400
2400
}
2401
2401
2402
- SCEVUse (ScalarEvolution:: *Extension)(SCEVUse, Type *, unsigned) =
2402
+ SCEVUse (ScalarEvolution::*Extension)(SCEVUse, Type *, unsigned) =
2403
2403
Signed ? &ScalarEvolution::getSignExtendExpr
2404
2404
: &ScalarEvolution::getZeroExtendExpr;
2405
2405
@@ -2824,7 +2824,7 @@ SCEVUse ScalarEvolution::getAddExpr(SmallVectorImpl<SCEVUse> &Ops,
2824
2824
// operands multiplied by constant values.
2825
2825
if (Idx < Ops.size() && isa<SCEVMulExpr>(Ops[Idx])) {
2826
2826
uint64_t BitWidth = getTypeSizeInBits(Ty);
2827
- SmallDenseMap<SCEVUse , APInt, 16> M;
2827
+ SmallDenseMap<SCEVUse, APInt, 16> M;
2828
2828
SmallVector<SCEVUse, 8> NewOps;
2829
2829
APInt AccumulatedConstant(BitWidth, 0);
2830
2830
if (CollectAddOperandsWithScales(M, NewOps, AccumulatedConstant,
@@ -8768,13 +8768,11 @@ bool ScalarEvolution::BackedgeTakenInfo::isConstantMaxOrZero(
8768
8768
return MaxOrZero && !any_of(ExitNotTaken, PredicateNotAlwaysTrue);
8769
8769
}
8770
8770
8771
- ScalarEvolution::ExitLimit::ExitLimit(SCEVUse E)
8772
- : ExitLimit(E, E, E, false) {}
8771
+ ScalarEvolution::ExitLimit::ExitLimit(SCEVUse E) : ExitLimit(E, E, E, false) {}
8773
8772
8774
8773
ScalarEvolution::ExitLimit::ExitLimit(
8775
- SCEVUse E, SCEVUse ConstantMaxNotTaken,
8776
- SCEVUse SymbolicMaxNotTaken, bool MaxOrZero,
8777
- ArrayRef<ArrayRef<const SCEVPredicate *>> PredLists)
8774
+ SCEVUse E, SCEVUse ConstantMaxNotTaken, SCEVUse SymbolicMaxNotTaken,
8775
+ bool MaxOrZero, ArrayRef<ArrayRef<const SCEVPredicate *>> PredLists)
8778
8776
: ExactNotTaken(E), ConstantMaxNotTaken(ConstantMaxNotTaken),
8779
8777
SymbolicMaxNotTaken(SymbolicMaxNotTaken), MaxOrZero(MaxOrZero) {
8780
8778
// If we prove the max count is zero, so is the symbolic bound. This happens
@@ -8813,8 +8811,7 @@ ScalarEvolution::ExitLimit::ExitLimit(
8813
8811
"Max backedge count should be int");
8814
8812
}
8815
8813
8816
- ScalarEvolution::ExitLimit::ExitLimit(SCEVUse E,
8817
- SCEVUse ConstantMaxNotTaken,
8814
+ ScalarEvolution::ExitLimit::ExitLimit(SCEVUse E, SCEVUse ConstantMaxNotTaken,
8818
8815
SCEVUse SymbolicMaxNotTaken,
8819
8816
bool MaxOrZero,
8820
8817
ArrayRef<const SCEVPredicate *> PredList)
@@ -12947,9 +12944,9 @@ SCEVUse ScalarEvolution::computeMaxBECountForLT(SCEVUse Start, SCEVUse Stride,
12947
12944
}
12948
12945
12949
12946
ScalarEvolution::ExitLimit
12950
- ScalarEvolution::howManyLessThans(SCEVUse LHS, SCEVUse RHS,
12951
- const Loop *L , bool IsSigned ,
12952
- bool ControlsOnlyExit, bool AllowPredicates) {
12947
+ ScalarEvolution::howManyLessThans(SCEVUse LHS, SCEVUse RHS, const Loop *L,
12948
+ bool IsSigned , bool ControlsOnlyExit ,
12949
+ bool AllowPredicates) {
12953
12950
SmallVector<const SCEVPredicate *> Predicates;
12954
12951
12955
12952
const SCEVAddRecExpr *IV = dyn_cast<SCEVAddRecExpr>(LHS);
@@ -13386,9 +13383,10 @@ ScalarEvolution::howManyLessThans(SCEVUse LHS, SCEVUse RHS,
13386
13383
Predicates);
13387
13384
}
13388
13385
13389
- ScalarEvolution::ExitLimit ScalarEvolution::howManyGreaterThans(
13390
- SCEVUse LHS, SCEVUse RHS, const Loop *L, bool IsSigned,
13391
- bool ControlsOnlyExit, bool AllowPredicates) {
13386
+ ScalarEvolution::ExitLimit
13387
+ ScalarEvolution::howManyGreaterThans(SCEVUse LHS, SCEVUse RHS, const Loop *L,
13388
+ bool IsSigned, bool ControlsOnlyExit,
13389
+ bool AllowPredicates) {
13392
13390
SmallVector<const SCEVPredicate *> Predicates;
13393
13391
// We handle only IV > Invariant
13394
13392
if (!isLoopInvariant(RHS, L))
@@ -14804,8 +14802,8 @@ class SCEVPredicateRewriter : public SCEVRewriteVisitor<SCEVPredicateRewriter> {
14804
14802
/// If \p NewPreds is non-null, rewrite is free to add further predicates to
14805
14803
/// \p NewPreds such that the result will be an AddRecExpr.
14806
14804
static SCEVUse rewrite(SCEVUse S, const Loop *L, ScalarEvolution &SE,
14807
- SmallVectorImpl<const SCEVPredicate *> *NewPreds,
14808
- const SCEVPredicate *Pred) {
14805
+ SmallVectorImpl<const SCEVPredicate *> *NewPreds,
14806
+ const SCEVPredicate *Pred) {
14809
14807
SCEVPredicateRewriter Rewriter(L, SE, NewPreds, Pred);
14810
14808
return Rewriter.visit(S);
14811
14809
}
@@ -14919,8 +14917,7 @@ SCEVUse ScalarEvolution::rewriteUsingPredicate(SCEVUse S, const Loop *L,
14919
14917
}
14920
14918
14921
14919
const SCEVAddRecExpr *ScalarEvolution::convertSCEVToAddRecWithPredicates(
14922
- SCEVUse S, const Loop *L,
14923
- SmallVectorImpl<const SCEVPredicate *> &Preds) {
14920
+ SCEVUse S, const Loop *L, SmallVectorImpl<const SCEVPredicate *> &Preds) {
14924
14921
SmallVector<const SCEVPredicate *> TransformPreds;
14925
14922
S = SCEVPredicateRewriter::rewrite(S, L, *this, &TransformPreds, nullptr);
14926
14923
auto *AddRec = dyn_cast<SCEVAddRecExpr>(S);
0 commit comments