[llvm] 0a925be - [IPO] Remove unused function getAndUpdateAAFor (#69544)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 12:21:50 PDT 2023


Author: Kazu Hirata
Date: 2023-11-01T12:21:46-07:00
New Revision: 0a925be0b5755d7ca08767dc51e341099345aa40

URL: https://github.com/llvm/llvm-project/commit/0a925be0b5755d7ca08767dc51e341099345aa40
DIFF: https://github.com/llvm/llvm-project/commit/0a925be0b5755d7ca08767dc51e341099345aa40.diff

LOG: [IPO] Remove unused function getAndUpdateAAFor (#69544)

The last use was removed by:

  commit 18d9f7ebbaa6022fb924c1607a0edc7ebe6ec8b8
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   Wed Jul 5 15:35:24 2023 -0700

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/IPO/Attributor.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h
index bd1bd8261123e51..7190036d60c8c64 100644
--- a/llvm/include/llvm/Transforms/IPO/Attributor.h
+++ b/llvm/include/llvm/Transforms/IPO/Attributor.h
@@ -1541,18 +1541,6 @@ struct Attributor {
                                     /* ForceUpdate */ false);
   }
 
-  /// Similar to getAAFor but the return abstract attribute will be updated (via
-  /// `AbstractAttribute::update`) even if it is found in the cache. This is
-  /// especially useful for AAIsDead as changes in liveness can make updates
-  /// possible/useful that were not happening before as the abstract attribute
-  /// was assumed dead.
-  template <typename AAType>
-  const AAType *getAndUpdateAAFor(const AbstractAttribute &QueryingAA,
-                                  const IRPosition &IRP, DepClassTy DepClass) {
-    return getOrCreateAAFor<AAType>(IRP, &QueryingAA, DepClass,
-                                    /* ForceUpdate */ true);
-  }
-
   /// The version of getAAFor that allows to omit a querying abstract
   /// attribute. Using this after Attributor started running is restricted to
   /// only the Attributor itself. Initial seeding of AAs can be done via this


        


More information about the llvm-commits mailing list