diff --git a/llvm/lib/Analysis/MemorySSA.cpp b/llvm/lib/Analysis/MemorySSA.cpp --- a/llvm/lib/Analysis/MemorySSA.cpp +++ b/llvm/lib/Analysis/MemorySSA.cpp @@ -359,7 +359,6 @@ const Instruction *Inst = nullptr; // The MemoryAccess we actually got called with, used to test local domination const MemoryAccess *OriginalAccess = nullptr; - Optional AR = AliasResult(AliasResult::MayAlias); bool SkipSelfAccess = false; UpwardsMemoryQuery() = default; @@ -1306,7 +1305,6 @@ // This is where the last walk for this memory location ended. unsigned long LastKill; bool LastKillValid; - Optional AR; }; void optimizeUsesInBlock(const BasicBlock *, unsigned long &, unsigned long &, @@ -1460,8 +1458,6 @@ --UpperBound; } - // Note: Phis always have AliasResult AR set to MayAlias ATM. - // At the end of this loop, UpperBound is either a clobber, or lower bound // PHI walking may cause it to be < LowerBound, and in fact, < LastKill. if (FoundClobberResult || UpperBound < LocInfo.LastKill) {