File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10668,8 +10668,9 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB)
10668
10668
/// guarding a loop, it can be useful to be a little more general, since a
10669
10669
/// front-end may have replicated the controlling expression.
10670
10670
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;
10673
10674
10674
10675
auto ComputesEqualValues = [](const Instruction *A, const Instruction *B) {
10675
10676
// Not all instructions that are "identical" compute the same value. For
You can’t perform that action at this time.
0 commit comments