Skip to content

Commit 6104124

Browse files
committed
!fixup compare getPointer() in HasSameVlue.
1 parent 996820a commit 6104124

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10616,7 +10616,8 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB)
1061610616
/// front-end may have replicated the controlling expression.
1061710617
static bool HasSameValue(SCEVUse A, SCEVUse B) {
1061810618
// Quick check to see if they are the same SCEV, ignoring use-specific flags.
10619-
if (A.getPointer() == B.getPointer()) return true;
10619+
if (A.getPointer() == B.getPointer())
10620+
return true;
1062010621

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

0 commit comments

Comments
 (0)