From 2242e28671c43f014d4e4e185d7ebde25bfd84a5 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Sun, 10 Aug 2025 14:43:40 +0800 Subject: [PATCH] [Analysis] Remove an unreachable check. NFC. (#152874) Binops never produce pointer values. --- llvm/lib/Analysis/Loads.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp index 78d0887d5d87..9a2c9ba63ec7 100644 --- a/llvm/lib/Analysis/Loads.cpp +++ b/llvm/lib/Analysis/Loads.cpp @@ -276,8 +276,7 @@ static bool AreEquivalentAddressValues(const Value *A, const Value *B) { // this function is only used when one address use dominates the // other, which means that they'll always either have the same // value or one of them will have an undefined value. - if (isa(A) || isa(A) || isa(A) || - isa(A)) + if (isa(A) || isa(A) || isa(A)) if (const Instruction *BI = dyn_cast(B)) if (cast(A)->isIdenticalToWhenDefined(BI)) return true;