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.
1 parent 052c38b commit 2242e28Copy full SHA for 2242e28
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