[llvm] 55378ae - [Analysis] Remove unused fields in MemorySSA.cpp (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 28 15:39:39 PST 2022


Author: Kazu Hirata
Date: 2022-11-28T15:39:32-08:00
New Revision: 55378ae87cce07c8897f9a0abb4a7edfed387696

URL: https://github.com/llvm/llvm-project/commit/55378ae87cce07c8897f9a0abb4a7edfed387696
DIFF: https://github.com/llvm/llvm-project/commit/55378ae87cce07c8897f9a0abb4a7edfed387696.diff

LOG: [Analysis] Remove unused fields in MemorySSA.cpp (NFC)

The last uses of AR were removed on July 28, 2022 in commit
f96ea53e892e0dfc1ee778868c1ed33616b95a82.

Differential Revision: https://reviews.llvm.org/D138730

Added: 
    

Modified: 
    llvm/lib/Analysis/MemorySSA.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/MemorySSA.cpp b/llvm/lib/Analysis/MemorySSA.cpp
index 32589155706b3..f6410b1f7af2e 100644
--- a/llvm/lib/Analysis/MemorySSA.cpp
+++ b/llvm/lib/Analysis/MemorySSA.cpp
@@ -359,7 +359,6 @@ struct UpwardsMemoryQuery {
   const Instruction *Inst = nullptr;
   // The MemoryAccess we actually got called with, used to test local domination
   const MemoryAccess *OriginalAccess = nullptr;
-  Optional<AliasResult> AR = AliasResult(AliasResult::MayAlias);
   bool SkipSelfAccess = false;
 
   UpwardsMemoryQuery() = default;
@@ -1306,7 +1305,6 @@ class MemorySSA::OptimizeUses {
     // This is where the last walk for this memory location ended.
     unsigned long LastKill;
     bool LastKillValid;
-    Optional<AliasResult> AR;
   };
 
   void optimizeUsesInBlock(const BasicBlock *, unsigned long &, unsigned long &,
@@ -1460,8 +1458,6 @@ void MemorySSA::OptimizeUses::optimizeUsesInBlock(
       --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) {


        


More information about the llvm-commits mailing list