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 @@ -10603,8 +10603,9 @@ ScalarEvolution::getPredecessorWithUniqueSuccessorForBB(const BasicBlock *BB)
1060310603/// guarding a loop, it can be useful to be a little more general, since a
1060410604/// front-end may have replicated the controlling expression.
1060510605static bool HasSameValue(SCEVUse A, SCEVUse B) {
10606- // Quick check to see if they are the same SCEV.
10607- if (A == B) return true;
10606+ // Quick check to see if they are the same SCEV, ignoring use-specific flags.
10607+ if (A.getPointer() == B.getPointer())
10608+ return true;
1060810609
1060910610 auto ComputesEqualValues = [](const Instruction *A, const Instruction *B) {
1061010611 // Not all instructions that are "identical" compute the same value. For
You can’t perform that action at this time.
0 commit comments