[llvm] 687b4c8 - [FunctionAttrs] Remove unused legacy-PM runImpl template (NFC) (#202983)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 07:54:54 PDT 2026
Author: Aditya Medhane
Date: 2026-06-10T07:54:48-07:00
New Revision: 687b4c8ed4fe3b3cd8b4f23f5968f00dfdacfe82
URL: https://github.com/llvm/llvm-project/commit/687b4c8ed4fe3b3cd8b4f23f5968f00dfdacfe82
DIFF: https://github.com/llvm/llvm-project/commit/687b4c8ed4fe3b3cd8b4f23f5968f00dfdacfe82.diff
LOG: [FunctionAttrs] Remove unused legacy-PM runImpl template (NFC) (#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.
Added:
Modified:
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
Removed:
################################################################################
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