Skip to content

Commit 23ccc88

Browse files
committed
!fix formatting
1 parent a8e9e7d commit 23ccc88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10668,8 +10668,9 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB)
1066810668
/// guarding a loop, it can be useful to be a little more general, since a
1066910669
/// front-end may have replicated the controlling expression.
1067010670
static bool HasSameValue(SCEVUse A, SCEVUse B) {
10671-
// Quick check to see if they are the same SCEV.
10672-
if (A == B) return true;
10671+
// Quick check to see if they are the same SCEV, ignoring use-specific flags.
10672+
if (A.getPointer() == B.getPointer())
10673+
return true;
1067310674

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

0 commit comments

Comments
 (0)