diff options
author | Florian Hahn <flo@fhahn.com> | 2024-05-22 16:28:55 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2024-05-22 16:28:55 +0100 |
commit | 7b4f33b0f1f4bc81a7c0e27c72a5b8ea6c604272 (patch) | |
tree | f7ab2c83ed9d1f3e99cd5bacbe6b560000376d57 | |
parent | d6a9dbd35fe442ee54ea32e9af93e7ed1bdefc29 (diff) |
!fixup compare getPointer() in HasSameVlue.upstream/users/fhahn/scevuse
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 0a826087d914..3656de35b71e 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -10568,7 +10568,8 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB) /// front-end may have replicated the controlling expression. static bool HasSameValue(SCEVUse A, SCEVUse B) { // Quick check to see if they are the same SCEV, ignoring use-specific flags. - if (A.getPointer() == B.getPointer()) return true; + if (A.getPointer() == B.getPointer()) + return true; auto ComputesEqualValues = [](const Instruction *A, const Instruction *B) { // Not all instructions that are "identical" compute the same value. For |