We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb0b240 + 2242e28 commit 24d0ab4Copy full SHA for 24d0ab4
llvm/lib/Analysis/Loads.cpp
@@ -276,8 +276,7 @@ static bool AreEquivalentAddressValues(const Value *A, const Value *B) {
276
// this function is only used when one address use dominates the
277
// other, which means that they'll always either have the same
278
// value or one of them will have an undefined value.
279
- if (isa<BinaryOperator>(A) || isa<CastInst>(A) || isa<PHINode>(A) ||
280
- isa<GetElementPtrInst>(A))
+ if (isa<CastInst>(A) || isa<PHINode>(A) || isa<GetElementPtrInst>(A))
281
if (const Instruction *BI = dyn_cast<Instruction>(B))
282
if (cast<Instruction>(A)->isIdenticalToWhenDefined(BI))
283
return true;
0 commit comments