[llvm] [IPO] Remove unused function getAndUpdateAAFor (PR #69544)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 18 17:56:42 PDT 2023


https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/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


>From 7d3646eccba87fcd4e24536e1a262f8e9d7d553b Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 17 Oct 2023 13:53:05 -0700
Subject: [PATCH] [IPO] Remove unused function getAndUpdateAAFor

The last use was removed by:

  commit 18d9f7ebbaa6022fb924c1607a0edc7ebe6ec8b8
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   Wed Jul 5 15:35:24 2023 -0700
---
 llvm/include/llvm/Transforms/IPO/Attributor.h | 12 ------------
 1 file changed, 12 deletions(-)

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