Skip to content

Commit 7b4f33b

Browse files
committed
!fixup compare getPointer() in HasSameVlue.
1 parent d6a9dbd commit 7b4f33b

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

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

0 commit comments

Comments
 (0)