Skip to content

Commit 4b0c62b

Browse files
committed
!fixup compare getPointer() in HasSameVlue.
1 parent e510400 commit 4b0c62b

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
@@ -10629,7 +10629,8 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB)
1062910629
/// front-end may have replicated the controlling expression.
1063010630
static bool HasSameValue(SCEVUse A, SCEVUse B) {
1063110631
// Quick check to see if they are the same SCEV, ignoring use-specific flags.
10632-
if (A.getPointer() == B.getPointer()) return true;
10632+
if (A.getPointer() == B.getPointer())
10633+
return true;
1063310634

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

0 commit comments

Comments
 (0)