Skip to content

Commit e510400

Browse files
committed
!fix formatting
1 parent c362fe9 commit e510400

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,8 +1274,8 @@ static SCEVUse getUnsignedOverflowLimitForStep(SCEVUse Step,
12741274
namespace {
12751275

12761276
struct ExtendOpTraitsBase {
1277-
typedef SCEVUse (ScalarEvolution:: *GetExtendExprTy)(SCEVUse, Type *,
1278-
unsigned);
1277+
typedef SCEVUse (ScalarEvolution::*GetExtendExprTy)(SCEVUse, Type *,
1278+
unsigned);
12791279
};
12801280

12811281
// Used to make code generic over signed and unsigned overflow.
@@ -2309,8 +2309,8 @@ static bool CollectAddOperandsWithScales(DenseMap<SCEVUse, APInt> &M,
23092309
bool ScalarEvolution::willNotOverflow(Instruction::BinaryOps BinOp, bool Signed,
23102310
SCEVUse LHS, SCEVUse RHS,
23112311
const Instruction *CtxI) {
2312-
SCEVUse (ScalarEvolution:: *Operation)(SCEVUse, SCEVUse, SCEV::NoWrapFlags,
2313-
unsigned);
2312+
SCEVUse (ScalarEvolution::*Operation)(SCEVUse, SCEVUse, SCEV::NoWrapFlags,
2313+
unsigned);
23142314
switch (BinOp) {
23152315
default:
23162316
llvm_unreachable("Unsupported binary op");
@@ -2325,7 +2325,7 @@ bool ScalarEvolution::willNotOverflow(Instruction::BinaryOps BinOp, bool Signed,
23252325
break;
23262326
}
23272327

2328-
SCEVUse (ScalarEvolution:: *Extension)(SCEVUse, Type *, unsigned) =
2328+
SCEVUse (ScalarEvolution::*Extension)(SCEVUse, Type *, unsigned) =
23292329
Signed ? &ScalarEvolution::getSignExtendExpr
23302330
: &ScalarEvolution::getZeroExtendExpr;
23312331

@@ -10628,8 +10628,8 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB)
1062810628
/// guarding a loop, it can be useful to be a little more general, since a
1062910629
/// front-end may have replicated the controlling expression.
1063010630
static bool HasSameValue(SCEVUse A, SCEVUse B) {
10631-
// Quick check to see if they are the same SCEV.
10632-
if (A == B) return true;
10631+
// Quick check to see if they are the same SCEV, ignoring use-specific flags.
10632+
if (A.getPointer() == B.getPointer()) return true;
1063310633

1063410634
auto ComputesEqualValues = [](const Instruction *A, const Instruction *B) {
1063510635
// Not all instructions that are "identical" compute the same value. For

llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ bool InductiveRangeCheck::reassociateSubLHS(
430430
auto getExprScaledIfOverflow = [&](Instruction::BinaryOps BinOp,
431431
const SCEV *LHS,
432432
const SCEV *RHS) -> const SCEV * {
433-
SCEVUse (ScalarEvolution:: *Operation)(SCEVUse, SCEVUse, SCEV::NoWrapFlags,
434-
unsigned);
433+
SCEVUse (ScalarEvolution::*Operation)(SCEVUse, SCEVUse, SCEV::NoWrapFlags,
434+
unsigned);
435435
switch (BinOp) {
436436
default:
437437
llvm_unreachable("Unsupported binary op");

0 commit comments

Comments
 (0)