[llvm] [FunctionAttrs] Remove unused legacy-PM runImpl template (NFC) (PR #202983)
Aditya Medhane via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 07:00:41 PDT 2026
https://github.com/flash1729 created https://github.com/llvm/llvm-project/pull/202983
`runImpl` here is a leftover from the legacy pass manager (it takes `CallGraphSCC`), with no callers since the legacy PM was removed. It never instantiates, so it trips `-Wunused-template`. Removing the dead template.
NFC.
Part of #202945.
>From 99d9abdb9460e0644bc322b9c8b61a1d96659bd5 Mon Sep 17 00:00:00 2001
From: flash1729 <sherlockedaditya at gmail.com>
Date: Wed, 10 Jun 2026 19:29:40 +0530
Subject: [PATCH] [FunctionAttrs] Remove unused legacy-PM runImpl template
(NFC)
`runImpl` here is a leftover from the legacy pass manager (it takes
`CallGraphSCC`), with no callers since the legacy PM was removed. It never
instantiates, so it trips `-Wunused-template`. Removing the dead template.
NFC.
Part of #202945.
---
llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index 467fab519d32a..d98d3a1c46309 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -2319,16 +2319,6 @@ void PostOrderFunctionAttrsPass::printPipeline(
OS << "<skip-non-recursive-function-attrs>";
}
-template <typename AARGetterT>
-static bool runImpl(CallGraphSCC &SCC, AARGetterT AARGetter) {
- SmallVector<Function *, 8> Functions;
- for (CallGraphNode *I : SCC) {
- Functions.push_back(I->getFunction());
- }
-
- return !deriveAttrsInPostOrder(Functions, AARGetter).empty();
-}
-
static bool addNoRecurseAttrsTopDown(Function &F) {
if (F.doesNotRecurse())
return false;
More information about the llvm-commits
mailing list